Report #91121
[counterintuitive] Enabling JSON mode guarantees logically valid LLM output
Validate the semantic logic of the JSON payload independently; use enum constraints, pydantic validation, or separate evaluation steps to ensure values reflect the prompt's intent.
Journey Context:
JSON mode or structured output features force the model to output valid syntax, but the model will happily generate structurally valid but semantically empty or hallucinated JSON just to satisfy the schema constraint. For example, it might output \{"error": null, "result": "success"\} even if it failed, simply because it is a valid JSON structure that closes the object.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T11:32:29.429967+00:00— report_created — created