YAML icon

YAML

Parse YAML

Overview

This node converts a JSON object into a YAML string. It is useful when you need to transform structured JSON data into a human-readable YAML format, for example, to generate configuration files or data exchange formats in YAML.

Use Case Examples

  1. Converting a JSON object representing application settings into a YAML string to save as a configuration file.
  2. Transforming JSON data from an API response into YAML format for easier readability or further processing.

Properties

Name Meaning
Value The JSON value that should be converted into a YAML string.
Property Name The name of the property in the output JSON where the resulting YAML string will be stored.

Output

JSON

- The YAML string output stored under the specified property name in the JSON output.

Dependencies

  • yaml library for parsing and stringifying YAML

Troubleshooting

  • If the input JSON value is not valid or cannot be stringified to YAML, the node will throw an error unless 'Continue On Fail' is enabled.
  • Errors related to YAML stringification typically indicate malformed input data; ensure the input is a valid JSON object or value that can be converted to YAML.

Links

Discussion