AI engineering glossary · Web APIs HTTP
What is JSON Schema?
JSON Schema: A vocabulary for describing the structure of JSON data: required fields, types, allowed ranges and patterns. Validators check documents against it. It is also used to describe the inputs of tools that language models can call.
JSON Schema: an example
{"type": "object", "required": ["age"], "properties": {"age": {"type": "integer", "minimum": 0}}} rejects a document without age.
Related terms
More Web APIs HTTP terms
Where you learn it
JSON Schema is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.