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.

Level: intermediateTopic: Web APIs HTTP

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.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.