JSON Schema Validator
Validate your JSON data against a JSON Schema. Ensure your data structure meets your specifications and requirements.
JSON Data
JSON Schema
What is JSON Schema?
JSON Schema is a powerful tool for validating the structure of JSON data. It allows you to:
- Describe your existing data format
- Provide clear human- and machine-readable documentation
- Validate data for automated testing and quality assurance
- Ensure client-submitted data is properly formatted
Example Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": { "type": "string" },
"age": { "type": "number", "minimum": 0 },
"email": { "type": "string", "format": "email" }
},
"required": ["name", "email"]
}
Common Schema Keywords
type
- Data type (string, number, object, array, boolean, null)properties
- Object propertiesrequired
- Required propertiesminimum/maximum
- Number constraints
minLength/maxLength
- String lengthpattern
- Regex pattern for stringsenum
- Allowed valuesitems
- Array item schema