Validate JSON data against JSON Schema specifications
Enter JSON data and schema, then click "Validate JSON"
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 valuesUse Cases:
| 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 |