Data Converter
Actions49
- Base64 Actions
- Binary Actions
- Encoding Actions
- Format Actions
- HTML Actions
- String Actions
Overview
This node operation converts JSON data into an HTML list. It takes a JSON input and generates either an ordered (numbered) or unordered (bulleted) HTML list based on the user's choice. This is useful when you want to display structured JSON data as a readable list in web pages, emails, or other HTML-supported environments.
Practical examples:
- Converting a JSON array of tasks into an HTML checklist.
- Displaying user comments or messages stored in JSON format as an HTML list.
- Transforming configuration or settings JSON into a human-readable HTML list for documentation.
Properties
| Name | Meaning |
|---|---|
| Input JSON | The JSON data to convert into an HTML list. |
| Ordered List | Whether to create an ordered (numbered) list (true) or an unordered (bulleted) list (false). |
| Binary Property Name | Name for the output binary property (used if outputting binary data; not typical for this operation). |
Output
The node outputs a JSON object with a single field containing the generated HTML string representing the list. The HTML will be a <ul> element for unordered lists or an <ol> element for ordered lists, with each JSON item converted into an <li> element.
If configured to output binary data (not common for this operation), the binary data would contain the HTML content under the specified binary property name.
Dependencies
- No external services or API keys are required.
- The node uses internal utility functions for converting JSON to HTML lists.
- No special environment variables or n8n configurations are necessary.
Troubleshooting
- Invalid JSON input: If the provided JSON string is malformed, the node will throw an error. Ensure the JSON is valid and properly formatted.
- Unexpected JSON structure: The conversion expects JSON that can be represented as a list (e.g., an array). Complex nested objects may not render as expected.
- Empty output: If the input JSON is empty or does not contain listable items, the output HTML list may be empty.
- Binary output confusion: Setting the node to output binary data for this operation is unusual and may cause unexpected results.