Practical guide
How to validate JSON against a schema
Valid JSON syntax does not mean the structure suits your application. This guide shows how to compare a document with supplied rules, read the report and recognize schemas this bounded validator cannot support.
Paste the schema and data separately
Open the validator, paste the schema in its schema field and the document in the JSON data field, then select “Process”. Both fields need valid JSON: comments, trailing commas, duplicate member names and unpaired Unicode surrogates cause errors. A schema can be an object, true or false. Paste content rather than a file URL.
The tool does not fetch remote schemas. If you include $schema, use https://json-schema.org/draft/2020-12/schema; omitting this declaration is allowed. Check that data and rules have not been swapped. The schema generator can infer a starting point from a sample, but inference from one document is not a complete API contract and needs review.
Read the result and problem path
The report contains valid and an issues array. Each issue has path and keyword without data values. An empty path identifies the document root; /count identifies count. At most 20 issues are shown, so a short list does not certify everything else. Rerun validation after corrections rather than treating the old report as current.
The table uses schema {"type":"object","properties":{"count":{"type":"integer","minimum":1}},"required":["count"]}. Paths use JSON Pointer escaping: ~ becomes ~0 and / inside a name becomes ~1. Array indexes start at zero. Reports omit values, but member names can still disclose information. Review and remove confidential names before sharing a report.
| JSON data | valid | path / keyword |
|---|---|---|
{"count":2} | true | [] |
{"count":0} | false | /count / minimum |
{} | false | "" / required |
Recognize the supported profile
This is an explicit subset of JSON Schema 2020-12, not a complete implementation. It supports type, properties, required, additionalProperties, items, anyOf, enum, const and inclusive or exclusive numeric bounds. Length and cardinality use minLength/maxLength, minItems/maxItems and minProperties/maxProperties. Available annotations are title, description, default and examples. They do not modify input data.
Unsupported keywords, including $ref, $defs, format, pattern, multipleOf, uniqueItems, prefixItems, oneOf, allOf, not and if/then/else, produce an error rather than being silently ignored. Do not delete important rules just to get a passing result. For a complete contract, use a suitable validator in your project with the original schema and application requirements intact.
Separate types from business rules
String "001" is not number 1. The validator neither coerces types nor inserts default values. Numbers are compared as decimals without first converting through JavaScript Number. The spelling 1.00 satisfies integer, and large numbers remain distinguishable. String length counts Unicode code points, not bytes or visually combined characters.
properties alone does not require a member; use required and specify the object type. anyOf needs at least one matching branch. Passing means only that data matches supplied supported rules. It does not establish authorization, record existence, email validity or API acceptance. Separately test missing data, boundary values and incorrect types.
Reduce samples when limits are exceeded
Each field accepts up to 50,000 UTF-16 units and 10,000 JSON values. Data containers can have 32 levels. Schemas allow 256 nodes and 16 subschema levels, properties and required up to 64 names, enum up to 64 values and anyOf up to 16 branches. These are implementation limits, not standard restrictions.
Number tokens allow 1,000 characters and explicit exponents from −1000 to 1000. Length and cardinality bounds are integers from zero to 10,000. Interpretation has a bounded work budget. A limit error does not mean data violates its contract: use representative samples or validate the full document in a controlled environment suited to its size.
Privacy and handing off output
Use short synthetic examples without customer data, passwords or API keys. Input and output stay in browser memory: the tool does not send them to analytics, put them in the page URL or keep history in localStorage or sessionStorage. Opening the page still connects your device to hosting. Browser extensions and other software on your device can have their own access to content.
Copying requires a separate click. Editing a field clears old output; process again after each change. “Clear” resets the form and options but cannot remove earlier clipboard copies, downloaded files or printouts. To report a problem, give the chosen mode, a small anonymized example and expected output. Before handing output off, check encoding and how the receiving application reads it.
Frequently asked questions
Can $ref point to another file?
No. $ref is rejected and the tool fetches neither files nor remote URLs.
Does default fill a missing member?
No. It is an annotation; validation does not modify the document.
Does passing establish API compliance?
No. It checks only supplied supported-profile rules. Check the remaining contract and business rules separately.
Does reset remove copied data?
No. Reset clears the form and output, but earlier clipboard copies, files and printouts need separate removal.
Sources and scope
Examples are synthetic. Profiles and limits describe this site, not entire standards. Output does not establish API, XSD or business-rule compliance. Check it in the destination system before use.
Tools covered by this guide
JSON Schema validator
Check JSON data against a declared 2020-12 schema profile without network references or data mutation.
Sample JSON generator
Create one deterministic sample from a bounded schema and check it before returning output.
JSON to XML converter
Write JSON in a declared typed profile or reconstruct elements from an XML tree without guessing types.
XML to JSON converter
Read the typed profile or ordinary XML as a tree retaining attributes, text and child order.