Token-Oriented Object Notation is a compact, human-readable format designed for passing structured data to Large Language Models with significantly reduced token usage.
🚧 This package is currently a namespace reservation. Full implementation coming soon!
JSON (verbose):
{
"users": [
{ "id": 1, "name": "Alice", "role": "admin" },
{ "id": 2, "name": "Bob", "role": "user" }
]
}TOON (compact):
users[2]{id,name,role}:
1,Alice,admin
2,Bob,user
Once implemented, the package will provide:
using Toon.Format;
var data = // your data structure
var toonString = ToonEncoder.Encode(data);
var decoded = ToonDecoder.Decode(toonString);Interested in implementing TOON for .NET? Check out the specification and feel free to contribute!
MIT License © 2025-PRESENT Johann Schopplich