JSON Schema Generator
Paste a sample JSON object or array and get a starting-point JSON Schema (draft-07) inferred from its structure.
About this tool
A JSON Schema describes the shape a piece of JSON data should have — which fields exist, what type each one is, and which are required — so it can be used to validate incoming data, generate documentation, or drive form-building tools. Writing one by hand for a large object is tedious; this tool infers a reasonable draft-07 schema directly from a real example, so you can paste in a sample response or record and get a starting point instantly.
The generated schema marks every key present in your sample as required and infers each field's type (string, number, boolean, array, object, or null) from its value — for arrays, it looks at the first item to infer the element type. Treat the result as a solid starting point rather than a final schema: you'll likely want to loosen "required" fields that are sometimes absent, and add constraints like string formats, minimum/maximum values, or enums by hand.
Version 1.0.0