Parse JSON

The Parse JSON command parses JSON data and stores it in an object variable.

JSON Data
Specify JSON data to be parsed. If you need to parse the json file, specify its name in angle brackets. Below are a few options for the definition of this parameter.

1{
2    "name": "Alex",
3    "list": [
4        {"id": 123, "value": "test"},
5        {"id": 56, "value": "#value# #mark#"}.
6    ]
7}
1#jsonvar #
1</home/user/data/settings.json>

Result Variable
Specify the name of the variable to which the object with JSON data will be assigned. You can use this variable in commands and functions to work with objects. You can also get field values directly. For example, if you specify the name of the variable jsonobj, you can get field values for the first example as follows:

1#jsonobj.name# => Alex
2#jsonobj.list[0].value# => test
3#jsonobj.list[1].id# => 56
Online Demo
Downloads Documentation Scripts Support
English
Русский