Calculator
What the JSON Schema Validator does
JSON Schema Validator: checks Status, Validation report and Violations from JSON data and JSON Schema. Example: the sample loaded on the page gives status 4 violations found.
Give the JSON Schema Validator your JSON data and JSON Schema and it works out Status, Validation report and Violations. There is no submit step; the numbers move as you adjust them.
It is mostly used by engineers checking an encoding. Pasting a production payload into an unknown web tool is a real risk, which is why this one stays local.
There is no back end here. The calculation runs where you are sitting, not on a server somewhere.
The field table, the method and a worked example are documented after the tool for anyone who wants to check the working.
What do the JSON Schema Validator fields mean?
The JSON Schema Validator uses 2 inputs. Rather than an empty form you get a filled one, useful when you only want to test a single change.
| Field | What to enter | Default |
|---|---|---|
| JSON data | paste or type any amount of text | { "id": 42, "email": "ada@example", "tags": ["a", "a"], "age": 17 } |
| JSON Schema | paste or type any amount of text | { "type": "object", "required": ["id", "email", "name"], "properties": { "id": { "type": "integer" }, "email": { "type": "string", "format": "email" }, "name": { "type": "string", "minLength": 1 }, "tags": { "type": "array", "uniqueItems": true, "items": { "type": "string" } }, "age": { "type": "integer", "minimum": 18 } }, "additionalProperties": false } |
How does the JSON Schema Validator work?
Each output is derived from the inputs above in a single pass; there is no hidden state carried between runs, so the same inputs always give the same check.
Bad input produces a message, not a silently incorrect figure.
Worked example
These are the values the JSON Schema Validator loads by default, and the result it produces from them. The defaults produce the result shown here; change any of them and the answer moves.
| JSON data | { "id": 42, "email": "ada@example", "tags": ["a", "… |
|---|---|
| JSON Schema | { "type": "object", "required": ["id", "email", "name… |
| Status | 4 violations found |
|---|---|
| Validation report | 1. $: missing required property "name" 2. $.email: not a valid email 3. $.tags: items are not unique 4. $.age: below… |
| Violations | 4 |
Read next: JSON Schema Validation: A Practical Guide
How to use it
- Paste your content into JSON data.
- Paste your content into JSON Schema.
- Results update continuously rather than on submit.
- Check Status, Validation report and Violations on the right.
- If you need a record, Copy Link saves the inputs and Print produces a clean page.
What this tool does not do
- Processing happens in your browser, so extremely large inputs are bounded by available memory.
- Output follows the common convention for this format; a specific toolchain may have its own house style.
- Edge cases at the very limits of the accepted range are handled, but rarely worth relying on.
Frequently asked questions
The form asks for JSON data and JSON Schema. A starting value is in place for each, so the form is usable immediately, without filling anything in first.
With the values loaded when the page opens, status comes out as 4 violations found. Edit any input and that figure moves with it.
No. The work runs in JavaScript inside this page, so your values never leave your device. You can confirm it in your browser network tab.
No cost and no account. Use it as often as you like.
As accurate as the inputs allow. The arithmetic itself introduces no error beyond display rounding.