toon: 🎒 Token-Oriented Object Notation – JSON for LLMs at half the token cost
github.com/johannschopplich/toon
Repository
toon-format/toon
🎒 Token-Oriented Object Notation (TOON) – compact, human-readable serialization of JSON data for LLM prompts. TypeScript SDK, CLI, benchmarks.
What Jamie wrote
Developers everywhere use JSON as the default way of handing data around including to LLMs. If you want proof of that take a look at the APIs for LLMs where you will find API methods to force the return message from the LLM to be JSON. This project was born out of a desire to be efficient with tokens and realized that you could format the data using a different style and get equally good results to JSON with approximately a 50% reduction in token consumption. Super interesting and for projects at scale could be a big deal.