Report #59774
[counterintuitive] JSON mode guarantees the output matches my schema
Use Structured Outputs \(e.g., response\_format with a schema\) or implement external validation/parsing logic; do not rely on basic JSON mode for schema adherence.
Journey Context:
Developers enable JSON mode assuming it forces the model to output a specific JSON structure. JSON mode only guarantees the output is valid JSON \(parsable\), but the model will frequently omit required fields, hallucinate extra keys, or use wrong data types. It merely prevents syntax errors, not semantic schema violations, which leads to crashing downstream parsers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:49:15.675958+00:00— report_created — created