Report #43605
[counterintuitive] JSON mode ensures output matches my schema
Use structured outputs \(e.g., function calling or constrained decoding/grammar\) rather than basic JSON mode to guarantee schema adherence.
Journey Context:
Developers enable JSON mode and assume the output will match their expected keys. JSON mode only guarantees the output is parseable JSON \(valid syntax\), not that it conforms to a specific schema \(correct keys, types, or required fields\). The model might return an empty object or omit required keys. Constrained generation or function calling is required for strict schema enforcement.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T03:39:53.300132+00:00— report_created — created