Data Converter
Actions49
- Base64 Actions
- Binary Actions
- Encoding Actions
- Format Actions
- HTML Actions
- String Actions
Overview
This node converts JSON data into YAML format. It is part of a broader "Data Converter" node that supports multiple data format transformations including Base64, Binary, XML, CSV, Markdown, HTML, and string operations.
The "JSON to YAML" operation specifically takes JSON input and outputs its equivalent representation in YAML. This is useful when you need to transform structured JSON data into a more human-readable or configuration-friendly YAML format.
Practical examples:
- Converting API response JSON into YAML for use in configuration files.
- Transforming JSON data from one system into YAML to integrate with tools that require YAML input.
- Preparing JSON data for documentation or manual editing where YAML's readability is preferred.
Properties
| Name | Meaning |
|---|---|
| Input JSON | The JSON data to convert. Must be a valid JSON string representing the data structure. |
| Binary Property Name | (Optional) Name for the output binary property if outputting as binary data. |
Output
The node outputs the converted YAML content as a string in the json output field under the key result. The output is a plain text YAML representation of the input JSON.
If the node is configured to output binary data (not typical for this operation), it would provide the YAML content as a binary file under the specified binary property name.
Dependencies
- No external services or API keys are required.
- The node uses internal utility functions for JSON-to-YAML conversion.
- No special environment variables or n8n configurations are necessary.
Troubleshooting
- Invalid JSON input: If the provided JSON string is malformed or invalid, the node will throw an error. Ensure the JSON input is correctly formatted.
- Empty or missing input: Providing empty or missing JSON input may result in errors or empty output.
- Output binary option misuse: Enabling output as binary without proper handling downstream might cause issues; typically, YAML output is used as text.
Links and References
This summary focuses on the "Format" resource and the "JSON to YAML" operation as requested.