Guided tutorials
Return structured JSON
Request JSON that follows your application’s schema.
Use a JSON schema when your application consumes the response.
Validate the result at your application boundary. Handle refusals, truncation, invalid JSON, and invalid field values separately.
Keep the schema small and use enums wherever the valid values are known. If the provider cannot honor the requested format, fail visibly rather than silently treating prose as valid application data.

