Developer tools
JSON Schema generator and sample check
Generate a JSON Schema from your own JSON samples, edit the rules and check the samples against them.
Generate or edit a schema, then check it against samples. Download schema and separate check details; changing fields clears previous exports. Multiline settings are retained as exact JSON parts in downloadable reports.
Result
Method:
Structural samples do not establish business validity. Supported subset: declared draft, title, description, type, properties, required, boolean additionalProperties, items, anyOf, enum and numeric/string/array bounds. Description is an annotation, not a validation rule. No external references, pattern/format inference or complete validator. Check details identify sample number, escaped JSON Pointer and failed rule without repeating input values; empty pointer means root. At most 32 details, with an explicit truncation flag; all sample validity results remain present. Input 2000, description 500, each output 3500 units, report 7600; depth 12 and safe JavaScript numbers.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Structural inference and supported edited-rule checking; explicit descriptions and bounded mismatch pointers. Structural samples do not establish business validity. Supported subset: declared draft, title, description, type, properties, required, boolean additionalProperties, items, anyOf, enum and numeric/string/array bounds. Description is an annotation, not a validation rule. No external references, pattern/format inference or complete validator. Check details identify sample number, escaped JSON Pointer and failed rule without repeating input values; empty pointer means root. At most 32 details, with an explicit truncation flag; all sample validity results remain present. Input 2000, description 500, each output 3500 units, report 7600; depth 12 and safe JavaScript numbers. Multiline settings are retained as exact JSON parts in downloadable reports.
Worked example
Own two-record sample; inferred rules remain explicit.
Frequently asked questions
How do I generate a JSON Schema from a sample?
Paste your own JSON samples to infer a structural schema, then edit and check it against the samples. It downloads as JSON.
Which JSON Schema features does the tool support?
Declared draft, title, description, type, properties, required, boolean additionalProperties, items, anyOf, enum and numeric, string and array bounds.
Does the checker validate business rules?
No. Structural samples do not establish business validity, and description is only an annotation.
Are external references and formats supported?
No. There are no external references, pattern or format inference, and it is not a complete validator.
What do the check details show?
The sample number, JSON Pointer and failed rule, without repeating input values. An empty pointer means the root, and at most 32 details are listed.
What are the size limits?
Input 2000 units, description 500, each output 3500 units, report 7600, depth 12 and safe JavaScript numbers.