Structured Output: Making an LLM Return JSON You Can Actually Trust
You ask the model to "return JSON" and it mostly does. Mostly. Then one day it wraps the JSON in a markdown code fence, or adds "Sure, here's the data you asked for:" before the {, or drops a trailing
nagspidey.hashnode.dev8 min read