JSON Schema is a powerful vocabulary for validating the structure of JSON data. It lets you define rules that JSON documents must follow.
What is JSON Schema?
JSON Schema is itself a JSON document that describes the expected shape of other JSON documents:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": { "type": "string", "minLength": 1 },
"age": { "type": "integer", "minimum": 0 },
"email": { "type": "string", "format": "email" }
},
"required": ["name", "email"]
}
Key Features
Common Use Cases
Tools and Libraries
Validate your JSON syntax first with our JSON Validator, then use JSON Schema for structural validation.