Developer

JSON Diff Viewer

Compare two JSON documents and see added, removed, and changed keys.

All tools

A

B

Diff

~ $.age: 36 → 37
- $.city: "Jakarta"
+ $.country: "ID"

Frequently asked questions

Does the order of keys in JSON matter when diffing?
Semantically no - JSON objects are unordered, so a key order swap should not be flagged as a meaningful change. A structural diff ignores key order; a textual diff will report it.
How are array element changes detected in a JSON diff?
Most diffs compare arrays by index, so inserting an item at the front shows every later element as changed. Use a key-based array diff if your items have a stable id to get cleaner output.
What's the difference between a JSON diff and a JSON patch?
A diff shows you what changed in human-readable form, while a JSON Patch (RFC 6902) is a machine-applicable list of add, remove, and replace operations. Patches can be replayed against the source document to produce the target.