Function jsonToNativeScript

Converts a json representation of a native script into a NativeScript.