json-to-toon

n8n node to convert JSON objects to TOON format (Token-Oriented Object Notation)

Package Information

Downloads: 1 weekly / 16 monthly
Latest Version: 0.0.3
Author: Prama Aditya

Documentation

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

  1. Add the "JSON to TOON" node to your workflow
  2. Connect it to any node that outputs JSON data
  3. The node will automatically convert the entire JSON object to TOON format
  4. Access the result in the json.output field 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,user

Use 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

Resources

Discussion