Vai al contenuto principale
CuteJSON
↑↓ Naviga Enter Seleziona Esc Chiudi

JSON Schema Generator

Turn a document you already have into a JSON Schema that describes it, and see which keys the sample says are optional.

Torna a tutti gli strumenti

Scorciatoie da tastiera

Funzionano dove l'azione corrispondente esiste in questa pagina.

Apri la tavolozza comandi
Ctrl/Cmd + K
Esegui l'azione principale
Ctrl/Cmd + Enter
Formatta
Ctrl/Cmd + Shift + F
Minifica
Ctrl/Cmd + Shift + M
Copia output
Ctrl/Cmd + Shift + C
Apri file
Ctrl/Cmd + Shift + O
Scarica output
Ctrl/Cmd + S
Chiudi questa finestra
Esc
Apri questa finestra
F1 / ?

Dati locali

Tutto qui sotto e memorizzato solo in questo browser.

Bozze non salvate
Strumenti con opzioni ricordate

File aperti di recente

    Nessun file aperto ancora.

    Condividi via link

    Il contenuto e impacchettato nella parte dopo il #.

    Condivide la prima input in questa pagina.

    Niente da condividere ancora.

    Input

    Carica da un URL

    Recupera l'URL dal tuo browser.

    Output

    Il risultato appare qui.

    Funziona interamente nel tuo browser.

    Su questo strumento

    A schema generated from a sample is a description of what was in the sample, not a specification, and this page treats it that way. An array is read as a list of records and every element is merged into one description, so a key missing from any record comes back as not required rather than quietly required. A field that is a whole number everywhere is called an integer, and one fraction anywhere makes it a number. A string format is only claimed when every string in that position matched the same pattern, which is what stops one lucky value from turning a free text field into a date. Two genuinely different types in one position become a type array. What this cannot do is know about the records you did not paste, so read the output as a starting point and widen it where your data is looser than your sample.

    Come usare

    1. Paste a document, or several records in an array, into the input pane.
    2. Choose the draft, and whether to detect string formats and mark required keys.
    3. Copy the schema or download it as a file.