Data Converter
Convert between various data formats - Base64, Binary, JSON, XML, YAML, CSV, HTML, and more
Actions49
- Base64 Actions
- Binary Actions
- Encoding Actions
- Format Actions
- HTML Actions
- String Actions
Overview
The node converts JSON data into Markdown format. It is part of a broader "Data Converter" node that supports multiple data format transformations. The "JSON to Markdown" operation specifically takes JSON input and formats it as Markdown text, which can be useful for generating human-readable documentation, reports, or content previews from structured JSON data.
Common scenarios:
- Automatically generating Markdown tables or lists from JSON API responses.
- Creating formatted Markdown content for README files or documentation based on JSON data.
- Converting JSON configuration or data dumps into Markdown for easier sharing or editing.
Example:
Input JSON:
[
{ "name": "Alice", "age": 30 },
{ "name": "Bob", "age": 25 }
]
Output Markdown (table):
| name | age |
|-------|-----|
| Alice | 30 |
| Bob | 25 |
Properties
| Name | Meaning |
|---|---|
| Input JSON | The JSON data to convert into Markdown format. |
Output
- The output is a single field named
resultin the JSON output. - This
resultcontains the Markdown-formatted string generated from the input JSON. - No binary data output is produced by this operation.
Example output JSON:
{
"result": "| name | age |\n|-------|-----|\n| Alice | 30 |\n| Bob | 25 |"
}
Dependencies
- Uses internal utility functions for JSON to Markdown conversion.
- No external API keys or services are required.
- No special environment variables or n8n credentials needed.
Troubleshooting
- Invalid JSON input: If the input JSON is malformed, the node will throw an error. Ensure the JSON is valid before passing it.
- Empty or non-array JSON: The conversion expects JSON arrays or objects suitable for Markdown formatting. Passing unsupported structures may result in unexpected output or errors.
- Large JSON inputs: Very large JSON inputs might cause performance issues or timeouts.
Links and References
- Markdown syntax guide: https://www.markdownguide.org/basic-syntax/
- JSON format specification: https://www.json.org/json-en.html