Report #65343
[counterintuitive] Using basic JSON mode \(response\_format: json\_object\) and expecting perfectly structured data
Always use Structured Outputs with a strict JSON Schema \(e.g., json\_schema parameter\) or tool\_use to guarantee 100% schema adherence.
Journey Context:
The original JSON mode just told the model 'output valid JSON,' but the model would often omit required fields, guess wrong types, or hallucinate extra fields. Developers spent hours writing Pydantic validation wrappers. Modern Structured Outputs enforce the schema at the decoding level, making validation wrappers for schema compliance obsolete.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:09:32.680526+00:00— report_created — created