Structured output describes required fields and types with a schema, then constrains or validates the model response against it. This reduces ad hoc text parsing but does not prove the values are meaningful.
The demo fills an object and flags a value with the wrong type. Business rules and factual correctness still need checks after schema validation.
When to use
Use it when model output must feed an API, database, or automation step in a stable shape.