JSON Diff
Compare JSON values structurally after refusing retained numbers that would change decimal value.
Loading tool…
How to use JSON Diff
Find actual data changes even when object-key order or indentation differs. Differences use JSON Pointer paths; array elements are compared by index rather than guessed identity.
- Paste the before and after JSON documents.
- Select Run tool to compare their data values.
- Review the result, then copy it or download the generated file.
Good to know
- Up to 100,000 input characters, 10,000 values, and 40 nesting levels. Duplicate keys retain their last value. Comparison stops if a retained JSON number would change decimal value when parsed; quote original digits only when your schema permits a string, or use an exact-number comparison tool.
- At most 5,000 reported changes. Array insertions can produce several index changes; this is not an executable JSON Patch. Negative zero keeps the existing comparison behavior; this is not an exact source-text comparison.
Separate data changes from object-key reordering
Paste the first object into Before JSON and the second into After JSON. The keep member moves in the source but keeps its value, so it is not reported. The a/b value changes and extra is added. Paths use JSON Pointer escaping: the slash inside the literal member name a/b becomes ~1, making /a~1b one member rather than two nested segments. Read each change with its before or after value before deciding how to update a configuration. This report describes parsed data; it is not a byte comparison or an executable patch.
Before JSON and After JSON
Before: {"a/b":1,"keep":true}
After: {"keep":true,"a/b":2,"extra":null}Expected JSON change list
[
{
"path": "/a~1b",
"change": "changed",
"before": 1,
"after": 2
},
{
"path": "/extra",
"change": "added",
"after": null
}
]- Arrays compare by index, so inserting an early element may produce several changed positions. Object members compare by name.
- Duplicate keys retain their last value. Comparison stops if a retained JSON number would change decimal value when parsed. Quote original complete digits only if your schema permits a string; this changes its type. Otherwise use an exact-number comparison tool. This guard does not add arbitrary-precision arithmetic or exact source-text comparison.
- Each source allows 100,000 characters, 10,000 values and 40 levels; reports allow 5,000 changes.
Common questions
Does a different key order count as a change?
No. Object properties are matched by name; array order still matters.
Keep going with related tools
All data →JSON Viewer
Inspect a JSON document as a safe path, type, and value tree without executing its contents.
TextText Diff
Compare two texts line by line and download an easy-to-read difference report, entirely in your browser.
DataJSON Key Sorter
Sort object properties throughout a JSON document while retaining array order.
DataObserved JSON Shape Drift Comparator
Compare empirical field presence and value kinds across two record collections without inventing a schema.
DataJSON Three-way Merge Review
Reconcile two JSON revisions against a common base and expose atomic-array and scalar conflicts.
DataJSON Merge Patch Workbench
Apply RFC7396 object-shaped merge patches or draft a patch between two JSON documents.