JSON Schema Validator
Validate JSON data against JSON Schema specifications
JSON Data
Load Example
No Validation Performed Yet
Enter JSON data and schema, then click "Validate JSON"
About JSON Schema
What is JSON Schema?
JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It provides a contract for JSON data and describes the structure of the data.
Common Schema Properties:
type- Data type (string, number, integer, boolean, array, object, null)properties- Object properties definitionrequired- Array of required property namesitems- Schema for array itemsminimum,maximum- Number constraintsminLength,maxLength- String length constraintspattern- Regex pattern for stringsenum- List of allowed values
Use Cases:
- API request/response validation
- Configuration file validation
- Data quality assurance
- Documentation and contracts
- Code generation from schemas
Schema Types Reference
| Type | Description | Example |
|---|---|---|
string |
Text value | "Hello" |
number |
Any numeric value | 42.5 |
integer |
Whole number | 42 |
boolean |
True or false | true |
array |
List of values | [1, 2, 3] |
object |
Key-value pairs | {"key": "value"} |
null |
Null value | null |