TOON is terrible, so I invented a new format (TRON) to prove a point

Posted by No-Olive342@reddit | LocalLLaMA | View on Reddit | 76 comments

TOON is terrible, so I invented a new format (TRON) to prove a point

There's been a lot of noise around TOON lately. This so-called "Token oriented" object notation is only useful when serializing an array of unnested objects. But lets face it, most practical use cases involve nested objects - a structure that almost always makes TOON less token efficient than JSON. Just look at the response payload for [listing MCP tools for GitHub](https://gist.github.com/didier-durand/2970be82fec6c84d522f7953ac7881b4) for instance.

I've noticed that most people posting about TOON are comparing its token count with indented JSON. That's CHEATING. If you're going to compare token count, you gotta compare with compressed JSON.

However, I do admit that there is some token inefficiencies with (compressed) JSON such as the repeating property names for common object structures. However, I didn't want to complain about TOON without providing my own suggestion so I invented this data format called TRON (Token Reduced Object Notation) as a feasible alternative.

Specifications: https://tron-format.github.io/
Playground: https://tron-format.github.io/#/playground
JavaScript SDK: https://github.com/tron-format/tron-javascript

Feel free to check out the Playground to try out TRON on your data.

(P.S. I already spent more time than I'd like coming up with this format and creating the website and JavaScript SDK. Maybe this catches on, maybe not. But for now, unless there is passion in the community to push this forward, I will refrain from spending additional time on this)