JSON

JSON is a built-in Class that can stringify Objects and parse JSON string to create a Map or Array.

Methods

Parse

Parse a JSON string to a Map or Array.

OutputVar := JSON.Parse(JSON_String)
OutputVar

The name of variable in which to store the created Map or Array.

JSON_String

String containing JSON or a variable containing a JSON string.

Stringify

Convert an Object to a JSON string.

OutputVar := JSON.Stringify(Object)
OutputVar

The name of variable in which to store the JSON string.

Object

Any Objects that support __Enum can be stringified.

Examples

for k, v in JSON.Parse('{"a":1,"b":2,"c":3}')
  MsgBox k "=" v

MsgBox JSON.Stringify({a:1,b:[2,3,4],c:Map("d",5,"e",6,"f",7)})