Convert JSON To Variable

The Convert JSON to variable command converts JSON-formatted text to a variable object.

JSON Format Text
You can specify JSON data or the name of the variable that contains JSON string.

Variable Name
Specify the name of the variable to which the created object will be assigned.

For example, if you specified the following JSON string

1{
2  "name": "John Doe",
3  "company": "My Company",
4  "age": 36,
5  "ids": [1,2,3]
6}

and the name of the resulting variable is user, then accessing the fields of the variable will return the following values

1#user.name# => John Doe
2#user.age# => 36
3#user.ids[1]# => 2
4#user.ids# => [1,2,3]
Online Demo
Downloads Documentation Scripts Support
English
Русский