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

JSON Flattener

Turn a nested document into one level of paths and values for a config file or a spreadsheet, and turn it back again.

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.

    Nested

    Carica da un URL

    Recupera l'URL dal tuo browser.

    Flat

    Il risultato appare qui.

    Funziona interamente nel tuo browser.

    Su questo strumento

    Flattening is what a document needs before it meets something that has no nesting: an environment file, a spreadsheet column, a translation catalogue, a form of key and value pairs. There is no standard for how the path is written, so the three spellings people actually use are offered and the page says which one is in force rather than picking one quietly. Two things really are ambiguous and both are handled in the open. A key that already contains the separator would produce a path nobody could read back, so it is refused by name with the suggestion to pick another style. Going the other way, a path segment made only of digits could mean an array index or an object key, and nothing in a flattened document says which, so that is a toggle. Empty objects and arrays are kept as values of their own, otherwise they vanish and the document does not survive the round trip.

    Come usare

    1. Choose a direction, then paste your document into the left pane or load the sample.
    2. Pick the path style. It has to match the document you are reading back.
    3. Press Convert, then copy the result or download it.