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

JSON Diff

Compare two JSON documents by what they mean rather than how they are laid out, and get the path of every difference.

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.

    Before

    Carica da un URL

    Recupera l'URL dal tuo browser.

    After

    Carica da un URL

    Recupera l'URL dal tuo browser.

    Differences

    The differences appear here.

      Funziona interamente nel tuo browser.

      Su questo strumento

      A text diff on JSON reports the wrong thing. Reindent a file or move a property to the top and it lights up as dozens of changed lines while the data is identical. This compares the documents themselves, so what comes back is a list of paths whose values genuinely differ. Objects are treated as unordered, because that is what the specification says they are. Arrays are compared by position, which is the only honest reading when the tool cannot know whether one element was inserted or every element after it was rewritten. Values count as equal when they mean the same thing, so 1 and 1.0 match and two spellings of the same string match, but two long integers have to agree digit for digit before they are called equal.

      Come usare

      1. Paste the original document on the left and the changed one on the right.
      2. Press Compare. Use Swap sides to turn the comparison around.
      3. Read the differences underneath. Each one carries the path of the value and both sides of the change.