DecodeJSON (open)
Decodes a JSON string
Syntax
// Core function, no LOADLIB necessary
VARIANT FUNCTION DecodeJSON(STRING indata, RECORD translations, RECORD options)Parameters
STRING indataJSON-encoded value
RECORD translationsMapping record (of the format [ cellname := "<jsonkey>", ... ]),
to remap JSON keys that aren't valid cell names in HareScript.
RECORD optionsOptions
BOOLEAN allowcommentsAllow comments in the JSON
BOOLEAN alltostringReturn all flat values (numbers and bools) as strings
BOOLEAN wrapobjectsWrap objects in a JSONObject and arrays in a JSONArray (translations are ignored)
Return value
VARIANTDecoded JSON value