Serialize Uniform Tables as TOON, Not JSON

~30-50% vs pretty-printed JSON, but only ~20-35% vs minified JSON; gains shrink to zero (or reverse) on nested or non-uniform data Intermediate 2 min read

When you feed the model a uniform array of records, JSON repeats every field name, brace, and quote on every row. TOON declares the field names once in a header and emits bare value rows, so you pay for values, not for structure you already stated.

๐Ÿ”’ Pro tip ยท Intermediate

Unlock this tip โ€” and 50 more

This is one of 51 advanced, fact-checked tactics reserved for Pro. Get the full 73-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.