If JSONToArray is passed an empty parameter for the JSON object, the external fails to parse it and returns an error message. That ends up hanging the calling function and it isn't possible to edit the calling script because the engine is in a "script is still executing" state. The only way out is to force-quit LC and lose and unsaved changes. This PR just returns empty if the JSON parameter is empty and so avoids getting into the force-quit situation.
If JSONToArray is passed an empty parameter for the JSON object, the external fails to parse it and returns an error message. That ends up hanging the calling function and it isn't possible to edit the calling script because the engine is in a "script is still executing" state. The only way out is to force-quit LC and lose and unsaved changes. This PR just returns empty if the JSON parameter is empty and so avoids getting into the force-quit situation.