Array_to_Brackets()

Array_to_Json()

Brackets_to_Array()

JSON-Related Commands

Let's illustrate with an example:


jsonStr = '{"menu": {"id": 1, "items": [{"name": "Pizza"}, {"name": "Pasta"}]}}'

-- Decode JSON, and extract the first item's name
decodedTable = _Json_to_Array(jsonStr)
firstItemName = _Json_Get_String_Field_and_Cut(decodedTable, "name") 

-- Format for bracket notation and pretty-print the remaining JSON 
bracketVersion = _Array_to_Brackets(decodedTable) 
prettyJson = _Json_Prettify(decodedTable)