Engineering·9 min
A Taxonomy of Structured Output Failures
By C.W. Jameson · Published 5 February 2026 · Last reviewed 5 February 2026
There are exactly twelve ways a model will break your schema. Seven of them have deterministic fixes. Five require prompt engineering.
When LLMs fail to produce valid JSON, XML, or schema-conformant output: the twelve ways it breaks and what to do about each.
Related dispatches