JSON Validate

POST /v1/convert/json-validate
curl -X POST "https://convert.toolkitapi.io/v1/convert/json-validate" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"json": {"name": "Alice", "age": 30}, "schema": {"type": "object", "required": ["name"], "properties": {"name": {"type": "string"}, "age": {"type": "integer"}}}}'
# See curl example
// See curl example
Response 200 OK
{
  "valid": true,
  "errors": [],
  "error_count": 0
}

How to Use

1

Send a POST request to /v1/convert/json-validate with json (the data) and schema (the JSON Schema).

About This Tool

Validate a JSON document against a JSON Schema (draft 2020-12). Returns a boolean valid status plus a list of validation errors with JSON Pointer paths.

Supports all standard JSON Schema keywords: type, properties, required, additionalProperties, allOf, anyOf, oneOf, $ref, pattern, enum, const, and more.

Why Use This Tool

Frequently Asked Questions

Which JSON Schema draft is supported?
Draft 2020-12 is the default. Drafts 4, 6, 7, and 2019-09 are also supported via the $schema keyword.
Are $ref references resolved?
Local $ref references within the schema are resolved. Remote $ref URLs are not fetched.

Start using JSON Validate now

Get your free API key and make your first request in under a minute.