JSON Diff Viewer
Compare two JSON documents and see added, removed, changed and unchanged values by path. Key order is ignored; array order is compared by position.
Compare two JSON documents and see added, removed, changed and unchanged values by path. Key order is ignored; array order is compared by position.
JSON Diff Viewer compares an original JSON document with an updated one and lists every difference by its path, such as $.user.roles[1]. Each entry is marked Added, Removed, Changed or Unchanged, with the old and new values, and a summary counts each kind of change.
Object keys are matched by name, so simply reordering keys is not reported as a change. Array order is treated as meaningful: items are compared position by position, so inserting an item near the start of an array makes later positions show as changed. Values are displayed strictly as text — any HTML inside your JSON is shown, never rendered.
No. Object keys are matched by name, so {"a":1,"b":2} and {"b":2,"a":1} are reported as equivalent.
Yes. Arrays are compared position by position. If an item is inserted at the start, every following position is reported as changed.
$ is the root of the document, .items is a key, [2] is the third array element and .price is a key inside it.
Each document is validated separately and the error tells you which one failed and, where the browser provides it, the line and column.
Yes. All values are displayed as plain text and are never inserted into the page as HTML.
No. The comparison runs entirely in your browser.