A subtle break point
For years, JSON has been the unquestioned default for structured data: the glue of APIs, logs and data interchange. As AI engineering teams started sending more and more of that data to large language models, an uncomfortable pattern emerged. Token bills grew. Context windows filled up with braces, quotes and repeated keys. And models asked to produce JSON sometimes returned something that was almost valid, which is the worst kind. What had always been "good enough" started to look like a bottleneck.
JSON was built for people and programs: readable keys, curly braces, descriptive labels repeated for every record. A language model reads all of it, token by token, and pays for every one. In that mismatch, new formats began to appear. One that gained rapid attention in late 2025 is TOON, Token-Oriented Object Notation, an open-source format released under the MIT licence by Johann Schopplich.
JSON is fine for most purposes, but some of the data we send to models deserves a leaner format.
What TOON actually changes
Every key, brace and quote in a JSON payload counts as tokens, and tokens determine cost, latency and how much context fits into a prompt.
TOON's main idea is simple. When you have an array of objects that all share the same fields, such as a product list or a table of orders, JSON repeats every field name for every record. TOON declares the field names once, states how many rows there are, and then lists the values row by row, much like a table. It keeps indentation for nesting, so it can still represent structured data.
The project's own benchmark, across 244 data retrieval questions and four models, reports that TOON used 42.6% fewer tokens than standard JSON while achieving slightly higher accuracy, 72.2% against 71.4%. The authors are careful to note that the accuracy difference falls within the margin of error. The reliable gain is efficiency.
Where the savings come from
For companies running large volumes of LLM calls with tabular context, such as catalogue data, transaction records or analytics results, fewer tokens per request means lower costs, faster responses and more room in the context window for instructions and documents.
Where TOON is not the answer
TOON's own documentation is open about its limits:
- For deeply nested or irregular data, compact JSON often uses fewer tokens.
- For semi-uniform arrays, the savings shrink, and it may be simpler to stay with JSON.
- For purely flat tables, CSV is smaller still.
- In some latency-sensitive setups, particularly local or quantised models, compact JSON can be processed faster despite its higher token count.
Outputs are a different problem
TOON is primarily a way to send data into a model. Getting reliable structured data out of a model is a separate challenge, and it is largely being solved within JSON. Model providers now offer structured output features that constrain generation to a supplied JSON Schema, and libraries such as Pydantic validate the result. The problem of a model returning phone when you asked for phone_number is addressed by schemas and validation, whichever format you use.
Why it matters for business
Formats like TOON are an early sign of engineering designed around how models consume information.
-
Context is a limited resource.
If a leaner format frees up a large share of each prompt for the right kind of data, you can pass in more records, longer histories or richer instructions. That raises the ceiling for retrieval systems, agents and multi-step analysis.
-
Cost scales with tokens.
Running LLMs at volume is expensive. For high-volume workloads with tabular inputs, a format change is one of the cheapest optimisations available.
-
Reliability comes from structure.
Agent systems often break for boring reasons. Explicit field lists and row counts give models a clearer picture of the data, and schemas on the output side catch drift. Together, they move AI workflows closer to production quality.
Should you adopt TOON? A quick test
Because TOON converts losslessly to and from JSON, you can trial it at the boundary without changing the rest of your systems:
- Pick a high-volume prompt that includes structured data, ideally arrays of records with the same fields.
- Measure the baseline: tokens per call, cost, latency and task accuracy with JSON.
- Convert just that payload to TOON using the official library, leaving your APIs and storage in JSON.
- Re-run the same evaluation on the models you actually use, and compare tokens, accuracy and latency.
- Adopt where it wins. Keep JSON, or try CSV, where the data is nested, irregular or purely flat.
Why the length and shape of model output matter as much as the input format is explained in mastering max tokens.
How this changes the way we design
JSON shaped a generation of developers. It taught us that readability mattered, and let people inspect, copy and debug data at a glance.
Models have different needs. They benefit from consistency and economy more than from human readability. When you structure data for a model, you're designing for a reader with its own costs and preferences.
Increasingly, teams will choose between two views of the same data: the way humans prefer to see it, and the way AI prefers to receive it. TOON sits in the second category.
Why token use matters to budgets as well as engineers is explained in our guide on why marketing teams should care about token efficiency.
Formats chosen by measurement
JSON isn't going anywhere. It will continue to power APIs, logs and dashboards for decades, and it remains the standard for structured model outputs. But at the input side of the LLM boundary, where token cost and context depth matter, leaner formats are making a strong case for the right kinds of data.
TOON is a response to the economics of tokens. Whether it becomes the standard or simply shows the way, the principle will last: choose formats for AI by measurement.



