JSON Schema Playground

Validate with Ajv (draft 2020-12), generate schemas, and query with JSONPath. Everything runs in your browser — nothing is uploaded.

JSON document

JSON Schema (draft 2020-12)

Result

✗ 4 validation errors

instancePathmessagekeywordschemaPath
/emailmust match format "email"{"format":"email"}format#/properties/email/format
/agemust be >= 0{"comparison":">=","limit":0}minimum#/properties/age/minimum
/rolesmust NOT have duplicate items (items ## 0 and 1 are identical){"i":1,"j":0}uniqueItems#/properties/roles/uniqueItems
/addressmust have required property 'zip'{"missingProperty":"zip"}required#/properties/address/required