Will a sample string become a fixed value or an enum?
The generator infers the string type. Add enumerations, patterns, formats and numeric bounds in your schema editor when your application requires them.
Paste a representative JSON value or an array of records to draft its shape. Review the editable schema text in your own editor and adjust rules the sample cannot establish.
The schema describes types observed in the sample and merges keys from objects at the same position. When array items contain different value types, it describes the alternatives together. Empty arrays leave item types open. Types are inferred from the browser’s parsed values, with safe whole numbers represented as integers.
The default leaves every property optional. In common-key mode, a property becomes required only if it appears in every observed object at that position. With one object, that includes every observed key. The additional-properties setting controls whether keys absent from the sample are permitted.
The generator infers the string type. Add enumerations, patterns, formats and numeric bounds in your schema editor when your application requires them.
A safe whole number produces an integer type, other finite numbers produce number, and null produces its own type. Browser numeric precision applies to the sample, so use strings for long identifiers that must keep every digit.
The output targets JSON Schema draft 2020-12. Review required properties, allowed extra keys and constraints with representative valid and invalid data before adopting it.