You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zero Overhead Object Notation (ZOON) is a token-optimized data format designed to maximize LLM Context Window efficiency. It removes all redundancy from your data, achieving token compression rates superior to JSON, TOON, ZON, and CSV. Written by Carsen Klock.
Why ZOON?
LLM Context Tokens cost money. Standard JSON is verbose. ZOON is optimal.
Token Benchmarks (GPT-5 Tokenizer)
Format
Tokens
Savings vs JSON
ZOON
6,274
60%
ZON
7,840
50%
TOON
8,630
45%
JSON
15,685
—
Key Features
Feature
Description
Indexed Enums
field!opt1|opt2 uses numeric indices for compact output
Header Aliasing
%a=long.prefix reduces nested redundancy
Constant Hoisting
@field=value moves repeated values to header
Auto-Increment
i+ type or +N count for implicit rows
Boolean Shorthand
1/0 (tabular) or y/n (inline)
Space Delimiters
More token-efficient than commas or pipes
Dual Format
Tabular (arrays) and Inline (objects)
ZOON vs TOON
Feature
TOON
ZOON
Delimiter
Pipes | / Commas
Spaces
Nested Data
❌ Flattened only
✅ Aliasing & Unflattening
Auto-increment
❌ Must include IDs
✅ i+ or +N
Single objects
❌ Arrays only
✅ Inline {...}
Type Safety
❌ None
✅ Header validated
Installation
bun add @zoon-format/zoon
CLI
npm install -g @zoon-format/cli
zoon input.json -o output.zoon --stats