Report #49235
[cost\_intel] How does JSON mode vs text generation impact token costs and latency?
Use JSON mode only when consuming code requires structured data; for LLM-to-LLM chains, use natural language with delimiters—JSON syntax adds 20-40% token overhead with no quality gain in intermediate steps.
Journey Context:
Developers reflexively use JSON mode for 'clean data,' forgetting that braces, quotes, and escape characters bloat token counts. Example: a list of 10 items in JSON \(with keys\) costs ~150 tokens; the same list in comma-separated natural language costs ~80. In multi-step agent chains, this compounds 3-5x. The quality myth: structured output doesn't improve reasoning; it just helps parsing. Exception: final output to a strict schema \(e.g., API response\), where JSON mode prevents malformed outputs that break consumers. For internal chains, use 'Thought: ... Action: ...' patterns—natural, token-efficient.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:07:23.091437+00:00— report_created — created