Developer Tools

JSON Schema Validator

Live

Validate JSON data against a practical subset of JSON Schema.

About JSON Schema Validator

Validate JSON data against a practical subset of JSON Schema. Enter json data, json schema in a purpose-built developer workspace with explicit units and relevant controls. The validator checks declared types, required properties, enums, numeric bounds, string lengths, array items, and nested properties. The result panel reports validation result, validation errors, validation details, checked values with supporting context. Results depend on the entered assumptions and should be checked against the real terms, measurements, or source data. Processing stays in your browser and entered values are not sent to UtilityPages.

Set up JSON Schema Validator

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

This workspace updates as you edit.

Enter the json data used by this tool.

Enter the json schema used by this tool.

JSON Schema Validator results

Enter the values above, then validate json to see the result.

JSON Schema Validator method

The validator checks declared types, required properties, enums, numeric bounds, string lengths, array items, and nested properties.

How it works

The validator checks declared types, required properties, enums, numeric bounds, string lengths, array items, and nested properties. Results depend on the entered assumptions and should be checked against the real terms, measurements, or source data.

Examples

JSON Schema Validator example

Example input
{
    "json": "{\"name\":\"Ada\",\"age\":36,\"active\":true}",
    "schema": "{\"type\":\"object\",\"required\":[\"name\",\"age\"],\"properties\":{\"name\":{\"type\":\"string\",\"minLength\":1},\"age\":{\"type\":\"integer\",\"minimum\":0},\"active\":{\"type\":\"boolean\"}}}"
}
Expected result
{
    "valid": "Valid",
    "error_count": 0,
    "errors": [
        {
            "path": "$",
            "message": "No validation errors"
        }
    ],
    "checked_nodes": 4
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

How does the JSON Schema Validator work?

The validator checks declared types, required properties, enums, numeric bounds, string lengths, array items, and nested properties.

What should I enter in the JSON Schema Validator?

Enter json data, json schema. Keep units consistent with the labels and use values from the same scenario.

What does the JSON Schema Validator return?

The result includes validation result, validation errors, validation details, checked values. Supporting values are included to make the headline result easier to check.

How exact is the JSON Schema Validator?

Results depend on the entered assumptions and should be checked against the real terms, measurements, or source data.