TOON (Token-Oriented Object Notation) is a compact, human-readable format designed specifically for Large Language Models (LLMs). It represents the same data as JSON but uses significantly fewer tokens, reducing API costs and improving AI model performance.
Think of TOON as a translation layer: you use JSON programmatically in your applications, then encode it as TOON when sending data to AI models like Claude, ChatGPT, Gemini, or any LLM API.
Key Concept
TOON combines YAML's indentation-based structure for nested objects with a CSV-style tabular layout for uniform arrays. This makes it incredibly efficient for the most common LLM use case: arrays of objects with consistent structure.