Back to full roadmap
topiccore
JSON Mode
API flag that guarantees valid JSON output.
2 hours1 resources1 prereqs
OpenAI: response_format: { type: "json_object" }. Gemini: response_mime_type: "application/json". Anthropic has no native flag but prefill + strict prompt suffice.
Important: JSON mode guarantees "valid JSON", not correct schema. For schema see next node.