Frequently Asked Questions
What is a JSON Schema Editor?▼
A JSON Schema Editor is a visual tool that lets you build JSON Schema definitions using a form-based interface instead of writing raw JSON by hand. You can add properties, set types, configure constraints like minimum/maximum values, mark fields as required, and define nested structures. The editor generates a valid JSON Schema document that can be used for API validation, configuration files, form generation, and code generation.
What is the difference between JSON Schema draft-07 and 2020-12?▼
Draft-07 uses the URI "http://json-schema.org/draft-07/schema#" and is the most widely supported version. Draft 2020-12 uses "https://json-schema.org/draft/2020-12/schema" and adds features like prefixItems for tuple validation, dynamic references, and vocabulary support. Draft-07 is recommended for maximum compatibility, while 2020-12 is ideal for new projects.
Can I generate TypeScript interfaces from a JSON Schema?▼
Yes. This tool converts any JSON Schema into TypeScript interface definitions. It maps JSON Schema types to TypeScript types: string becomes string, number/integer become number, boolean becomes boolean, arrays become typed arrays, and nested objects become nested interfaces. Required properties are non-optional while others get the optional (?) modifier.
How do I validate JSON data against a schema?▼
Build your schema using the visual editor or import an existing one, then switch to the Validate tab, paste your JSON data, and click Validate. The tool checks type constraints, required fields, string patterns, numeric ranges, array bounds, enum values, and nested object structures. All validation runs locally in your browser.
What constraints can I set on JSON Schema properties?▼
You can set type-specific constraints including: minLength/maxLength/pattern for strings, minimum/maximum for numbers, minItems/maxItems for arrays, enum values for any type, format validation (email, uri, date, uuid, ipv4, etc.), and you can mark properties as required. Nested objects and array item definitions are also fully supported.