Overview
This node parses a YAML string into a JSON object. It is useful when you have data in YAML format and need to convert it into JSON for further processing or integration within workflows. For example, you can input a YAML configuration or data snippet and extract it as a JSON object to use in subsequent nodes.
Use Case Examples
- Parsing a YAML configuration file content into JSON to dynamically configure other nodes.
- Converting YAML data received from an API or file into JSON for easier manipulation.
Properties
| Name | Meaning |
|---|---|
| YAML | The YAML string to parse into JSON. |
| Property Name | The name of the property in the output JSON where the parsed result will be stored. |
Output
JSON
json - The parsed JSON object from the input YAML string, stored under the specified property name.
Dependencies
- Uses the 'yaml' library for parsing YAML strings.
Troubleshooting
- If the YAML string is malformed or invalid, the node will throw a parsing error. To handle this, enable 'Continue On Fail' to skip errors and continue processing other items.
- Ensure the 'Property Name' is correctly set to avoid overwriting important data or placing the output in an unexpected location.
Links
- YAML Library Documentation - Documentation for the 'yaml' library used for parsing and stringifying YAML.