AI Video Academy · Prompt Optimization · intermediate

JSON vs TOON Token Comparison

The same records in fewer tokens, with a round-trip check.

0:48 · captions in English · instrumental music, no narration

Transcript

Why does JSON cost so many tokens?

Arrays of records repeat every key, quote, and brace for each item.

TOON writes the keys once as a header, then one row per record.

Use TOON for uniform records, only when it decodes back to identical JSON.

Same data, fewer tokens, verified lossless.

Experiment with this concept in PromptFlowEngine.