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 value
Value to convert
RECORD options
Options
RECORD translations
Mapping record (of the format [ cellname := "<jsonkey>", ... ]
),
to remap JSON keys that aren't valid cell names in HareScript.
Return value
VARIANT
Value with all records converted to JSONObject objects and all arrays to JSONArray objects