JSON Diff
Compare two JSON documents and list every value that was added, removed or changed, each with its path. Optionally ignore the order of list items.
Processed on your device. Files are not uploaded
How to compare two JSON documents
Paste both documents
Put the original on the left and the changed version below it.
Read the differences
Each added, removed or changed value is listed with its path.
Copy the list
Copy the differences as text or as a table.
Worked example
This is what JSON Diff gives for its own sample values. Open the tool above and change anything to try your own.
Original JSON
{
"name": "sarva",
"version": "1.0.0",
"tags": ["a", "b"],
"debug": true
}Changed JSON
{
"name": "sarva",
"version": "1.1.0",
"tags": ["a", "c", "d"],
"license": "MIT"
}- Ignore the order of list items
- No
Differences as text
~ $.version: "1.0.0" -> "1.1.0" ~ $.tags[1]: "b" -> "c" + $.tags[2]: "d" - $.debug: true + $.license: "MIT"
| Change | Path | Before | After |
|---|---|---|---|
| changed | $.version | "1.0.0" | "1.1.0" |
| changed | $.tags[1] | "b" | "c" |
| added | $.tags[2] | "d" | |
| removed | $.debug | true | |
| added | $.license | "MIT" |
About JSON Diff
Compare two JSON documents key by key, not line by line, so formatting and key order do not create noise. Optionally ignore the order of list items as well.
FAQs
Does key order matter?
No. Objects are compared by key.
Can it ignore list order?
Yes. Turn on the option to treat lists as unordered.
Can I compare plain text?
Use Text Compare.