










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Data engineering and AI, agentic AI engineering
Typology: Slides
1 / 18
This page cannot be seen from the preview
Don't miss anything!











Brij Kishore Pandey @brijpandeyji
Introduction
TOON (Token-Oriented Object Notation) is a new serialization format designed specifically for Large Language Models. It reduces token consumption by minimizing syntax noise and removing repetitive keys. It maintains full compatibility with JSON and can be converted back and forth losslessly. TOON excels in linear, uniform, tabular, or semi-structured data used in prompts. What is TOON?
Why TOON Was Created Reduce token cost for LLM inputs Improve LLM parsing accuracy by removing syntax clutter Optimize agent looping, tool output, and memory blocks Maintain JSON equivalence without complexity Provide a human- and machine-readable structure
Side-by-Side Comparison (Basic Object) JSON JSONJSON TOON TOONTOON
Nested Structure Comparison JSON JSONJSON TOON TOONTOON
Mixed Arrays JSON JSONJSON TOON TOONTOON
Complex Table (Telemetry, Logs, Events) JSON JSONJSON TOON TOONTOON
RAG Retrieval Example JSON JSONJSON TOON TOONTOON
Limitations of TOON
When To Use JSON vs TOON When To Use When To Use JSON JSONJSON TOON TOONTOON API communication Passing structured data to LLMs Tool I/O, agent memory, RAG chunks Logs, telemetry, catalogs, events Reducing token cost is a priority Complex nested structures Validation, schemas, storage
Conclusion JSON remains the universal standard for structured data, but it is not optimized for LLM interaction. TOON provides a token-efficient, LLM-friendly alternative that preserves structure while dramatically