Paste a JSON sample and get a JSON Schema (draft-07) inferred from it — types, object properties, required arrays, and array items. Use it to validate future payloads or document an API. Copy it or download the .json. Runs in your browser.
Draft-07, with the $schema declaration set to http://json-schema.org/draft-07/schema#. Draft-07 is the most widely supported dialect across validators.
Every key present in the sample object is added to that object’s required array, and each value’s type is inferred (integer, number, string, boolean, array, object, null).
The schema infers items from the first element of each array. If your arrays are heterogeneous, review and widen the generated items schema by hand.