JSON input
Paste JSON, optionally name the root type, then generate.
Your JSON Schema code will appear here.
Generate JSON Schema documents from JSON samples. Types, required arrays, nested properties, and formats are inferred automatically.
Paste JSON, optionally name the root type, then generate.
Your JSON Schema code will appear here.
JSON Schema is usually written before the data exists, but often you have the data first. This tool reverses the flow: feed it a representative payload and get a draft 2020-12 schema documenting every observed field.
Use the schema to validate config files at startup, API responses in tests, or user submitted JSON in admin tools. Ajv and Python's jsonschema both consume the output directly.