Report #45590
[counterintuitive] Writing long paragraphs describing a JSON output format in natural language
Use native structured output features \(JSON mode, Structured Outputs\) or paste a formal schema \(JSON Schema, Pydantic/Zod\) directly.
Journey Context:
Natural language descriptions of JSON schemas are highly prone to missing edge cases \(optional fields, nullables, specific enums\). The model might invent fields or format dates wrong. Native structured output features constrain the decoding process to guarantee syntactic validity and schema adherence, replacing fragile prompt engineering with deterministic enforcement. If native features aren't available, pasting the raw JSON Schema is far more precise than describing it in prose.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:59:44.415970+00:00— report_created — created