Report #68968
[counterintuitive] JSON mode guarantees schema validation
Use Structured Outputs \(JSON schema enforcement\) rather than just \`response\_format=\{ "type": "json\_object" \}\`, and always validate the output against your JSON schema on the client side.
Journey Context:
Developers enable JSON mode thinking it guarantees their specific schema. JSON mode only guarantees the output is \*valid JSON\* \(parses without error\), not that it conforms to the expected keys, types, or non-null constraints. The model might omit required fields or hallucinate extra fields. OpenAI's Structured Outputs feature was introduced specifically to solve this, but the old JSON mode is still widely misused.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:14:46.774017+00:00— report_created — created