@prama13/n8n-nodes-json-to-toon
v0.0.3
Published
n8n node to convert JSON objects to TOON format (Token-Oriented Object Notation)
Readme
n8n-nodes-json-to-toon
This is an n8n community node that converts JSON objects to TOON format (Token-Oriented Object Notation).
TOON is a compact, human-readable format designed for LLM prompts that reduces token usage by 20-50% compared to JSON while maintaining full data fidelity.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Compatibility
Usage
Resources
Installation
Follow the installation guide in the n8n community nodes documentation.
Operations
This node provides a single operation:
- Convert to TOON: Takes any JSON input and converts it to TOON format string
The converted TOON string is output in the json.output field.
Compatibility
- Minimum n8n version: 1.0.0
- Tested with n8n 1.x
Usage
- Add the "JSON to TOON" node to your workflow
- Connect it to any node that outputs JSON data
- The node will automatically convert the entire JSON object to TOON format
- Access the result in the
json.outputfield of the node output
Example
Input:
{
"users": [
{ "id": 1, "name": "Alice", "role": "admin" },
{ "id": 2, "name": "Bob", "role": "user" }
]
}Output (in json.output):
users[2]{id,name,role}:
1,Alice,admin
2,Bob,userUse Cases
- Preparing data for LLM prompts with reduced token usage
- Converting API responses to more compact format
- Data transformation in workflows that interact with AI models
