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
- Converting a JSON object representing application settings into a YAML string to save as a configuration file.
- 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
- YAML Library Documentation - Documentation for the YAML library used for parsing and stringifying YAML in this node.