Token Oriented Object Notation is a compact human readable serialisation format. It is used to pass structured data to LLM (with reduced tokens). TOON is a combination of YAML and CSV structuring. It gets the YAMLs Indentation and CSVs tabular format structure. TOON acts as a translation layer and TOON format is usually passed to LLM as an input. It is advisable to use TOON when the payload is larger
TOON Features
- Indent based structure (usage of whitespaces)
- Tabular arrays (declare syntax once and then use context throughout)
- Minimal Syntax (removes redundancy)
- Token efficiency
Syntax (JSON => TOON)
Compare TOON with JSON
Sample TOON File
Sample JSON File
JSON >> TOON Conversion

