Report #36839
[counterintuitive] Does JSON mode or structured output ensure LLM response correctness
Validate the semantics \(business logic\) of the structured output independently; never trust that schema compliance implies logical correctness.
Journey Context:
Developers enable JSON mode or function calling and assume the output is correct because it parses. But LLMs will happily force a square peg into a round hole—e.g., returning a valid JSON tool call with plausible but hallucinated parameters just to satisfy the schema. Schema validation only guarantees syntax, not truth.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:18:35.556667+00:00— report_created — created