Parse YAML

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

YAML Data
Specify YAML data to be parsed. If you need to parse a yaml file, then specify its name in angle brackets or read it into a variable beforehand. Below are a few options for the definition of this parameter.

1name: Alex
2list:
3    - id: 123
4      value: test
5    - id: 56
6      value: "#value# #mark#"
1#yamlvar#
1</home/user/data/settings.yaml>

Result Variable
Specify the name of the variable to which the object with YAML 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 yamlobj, you can get field values for the first example as follows:

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