JSON mode changes what your model answers A July 2026 study of 44 language models found that asking for JSON output collapsed answer diversity: the modal answer rose from 41% to 64% of responses, distinct answers per prompt fell from 52 to 36, and a JSON clause flipped 53% of models' stable default answers. The effect tracks tool-use training, with JSON and XML compressing diversity while YAML and CSV do not, meaning the structured output surface used by software agents is measurably narrower than the chat surface where models are evaluated. Context Engineering MCP Model Context Protocol /blog/context-engineering-lives-in-substrates-not-harnesses/ Context engineering lives in substrates, not harnesses Key takeaway Asking a language model to answer in JSON changes which answer it gives, not just how the answer is wrapped. A July 2026 study of 44 models found structured output collapsed answer diversity: the modal answer rose from 41% to 64% of responses, distinct answers per prompt fell from 52 to 36, and a JSON clause flipped 53% of models' stable default answers. The effect tracks tool-use training: JSON and XML compress diversity, YAML and CSV do not. Since software consumes models almost entirely through structured output, the surface production agents use is measurably narrower than the chat surface where models get evaluated. Asking a language model to answer in JSON changes which answer it gives, not just how the answer is wrapped. A July 2026 study ran the same 31 single-word prompts across 44 language models, once in plain chat and once with a JSON format request appended. In chat, the most popular answer accounted for 41% of responses across the panel. Under JSON, it accounted for 64%. Distinct answers per prompt fell from 52 to 36, and mean answer surprisal dropped from 1.80 to 1.58 bits. Nothing about the questions changed. The only difference was a sentence asking for {"word": "