JSON Diff
Compare two JSON documents as data: every added, removed and changed value by path.
Runs in your browser
Comparing JSON as data
A text diff of two API responses is mostly noise: keys in a different order, different indentation, 129.9 written as 129.90. None of that changes the data. JSON Diff parses both documents and compares the values, so you only see what really changed: each added, removed or changed value with its exact path, like $.items[0].qty 2 → 3.
Both documents are shown side by side with the changes highlighted; click a change to jump to it in both. Turn on Ignore array order when a list's order doesn't matter (tags, IDs returned in any order). Copy as JSON Patch gives the changes as an RFC 6902 patch that turns the original into the changed document.
How to use the JSON Diff
Paste both documents. The original on the left, the changed one on the right. Or load the sample orders.
Choose how to compare. Key order and formatting never count. Turn on Ignore array order if list order doesn't matter either.
Read the changes. Filter by added, removed or changed, and click one to see it highlighted in both documents.
Copy them if you need to. As a JSON Patch, or open the documents in other tools.
Tips
- Comparing staging and production responses? Remove fields that always differ (timestamps, request IDs) first, or filter to Changed.
- Numbers are compared by value:
1.0equals1, and1e2equals100. Integers too big for JavaScript are compared digit by digit, so they stay exact. - Need a line-by-line view instead? The Diff Checker's JSON mode shows both documents as text with the changed lines marked.
Frequently asked questions
How are arrays compared?
By position: item 0 with item 0, and so on. With Ignore array order on, identical items are matched wherever they are, and what's left is compared in order.
What's a JSON Patch?
A standard (RFC 6902) list of operations, like replace, add and remove with a JSON Pointer path, that turns one document into another. Many libraries can apply it. It isn't offered when array order is ignored, since there's no single order of operations then.
How big can the documents be?
Several megabytes work fine. The first 1,000 changes are listed.
Is my JSON uploaded?
No. Both documents are compared in your browser.