Generate a JSON Schema (Draft-7) automatically from any sample JSON object.
Sample JSON
The JSON Schema Generator automatically infers a JSON Schema (Draft-7) from any sample JSON object. Instead of writing schemas by hand, simply paste a representative JSON document and get a complete, validated schema in seconds.
JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It describes the structure, data types, and constraints of your JSON data. Draft-7 is one of the most widely supported versions and is used by tools like Ajv, Postman, and many API gateways.
{"type": "null"}type: integertype: numberrequired automatically