JsonImport and JsonExport are not in the "LiveCode Script" dictionary. You need to switch to "JSON Library" from the dropdown.
mergJSON, easyJSON and fastJSON all output numeric-keyed arrays as JSON arrays, if you need JSON arrays then you definitely need one of them (ie - the stuff within a square brace). For my purposes with CouchDB, the JSON LCB library is insufficient. mergJSON's "pretty" mode is great for displaying a readable JSON, it alphabetizes keys and indents based on depth I put together a couple of functions a while back to make a readable JSON, I haven't updated it in a while. It does not sort keys alphabetically, just adds whitespace to indent key/value pairs based on depth https://github.com/madpink/gingerjson/blob/master/gingerjson.lc if needed: FastJSON (still being maintained): https://github.com/bhall2001/fastjson EasyJSON (stable, but not updated in several years): https://github.com/luxlogica/easyjson -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Maintain-Order-in-JSON-Import-tp4708343p4708523.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ 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