JSON Schema
What is JSON Schema?
In one sentence: JSON Schema is a standard way to describe what a piece of JSON data should look like, including its fields and types.
It acts like a template or form: "name must be text, age must be a number, email is required." AI tools use it to define tool inputs and structured outputs.
What does JSON Schema look like?
A schema saying "rating" must be a whole number from 1 to 5.
Why does JSON Schema matter?
Schemas make sure data from AI is complete and correctly formatted.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/json-schema/">JSON Schema, explained simply</a> (The AI Math Dictionary)