WrapJSONObjects (open)
Converts all records and arrays in a value to JSONObject and JSONArray, respectively.
Syntax
// Core function, no LOADLIB necessary
VARIANT FUNCTION WrapJSONObjects(VARIANT value, RECORD options)Parameters
VARIANT valueValue to convert
RECORD optionsOptions
RECORD translationsMapping record (of the format [ cellname := "<jsonkey>", ... ]),
to remap JSON keys that aren't valid cell names in HareScript.
Return value
VARIANTValue with all records converted to JSONObject objects and all arrays to JSONArray objects