Report #24837
[counterintuitive] Forcing JSON output via prompt text
Use the model's native structured output feature \(JSON mode, Function Calling, or response\_format\).
Journey Context:
Text-based JSON enforcement was brittle and often resulted in markdown-wrapped JSON or invalid syntax. Native modes guarantee schema validity and shift the parsing burden to the API layer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T20:05:42.219648+00:00— report_created — created