I¹m running into problems exporting a large multidimensional array to JSON using the jsonExport function in LC8. I¹ve been doing this successfully with other large datasets for a while now but there are particular elements in my current array that cause an error something like the following in the script editor...
card "<cardName>": execution error at line <lineNum> (extension: error occurred with domain) near ³runtime", char 8 ...in response to the following... put jsonExport(tData) into tJsonData If I go through all of the array elements in turn it is possible to identify the problem ones and I can Œfix¹ each of them by doing this... put empty after tData[<tElement>] ...after which jsonExport() runs just fine. The problem data was originally sourced from another array that was populated from a series of xml files using Trevor¹s library for converting xml data to an array (specifying UTF-8 encoding during the conversion). Any ideas on what might be going on? Like I mentioned, I can Œfix' the data before exporting it but that¹s probably not a long term solution. Regards, Terry... Terry Judd | Senior Lecturer in Medical Education Department of Medical Education <http://medicine.unimelb.edu.au/medical-education> The University of Melbourne <http://www.unimelb.edu.au> E: terry.j...@unimelb.edu.au <mailto:t...@unimelb.edu.au> Publications <https://scholar.google.com.au/citations?user=XC5s6wwAAAAJ&hl=en> _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode