JSON Diff
Compare two JSON documents — see added, removed, and changed keys with JSONPath locations. 100% local.
How the Diff Works
The diff engine recursively compares the two JSON documents key by key. Each key found in either document is classified as added (only in B), removed (only in A), changed (in both but different values), or unchanged (identical). Nested objects are recursed into. The result includes a JSONPath string for every changed key, so you can pinpoint exactly what changed in deep structures.
{"name":"Alice","age":30,"role":"admin","tags":["a","b"]}$.age changed 30 → 31 $.email added "[email protected]" $.role removed "admin" $.tags[1] changed "b" → "c"
JSONPath Locations
Every diff entry includes a JSONPath string pointing to where the change is. $ is the root. Nested keys use dot notation: $.user.address.city. Array indices use bracket notation: $.tags[1]. These paths can be used directly in JSONPath expressions if you want to query or extract the changed values.
Array Comparison
["a", "b"] to ["b", "a"], the diff will show [0] changed from "a" to "b" and [1] changed from "b" to "a" — not "reordered". This is by design: the diff has no way to know if the reorder was intentional.For object arrays where you want identity-based comparison (e.g., "find the user whose email changed"), sort both arrays by a stable key before diffing, or use a dedicated JSON Patch tool.
Frequently Asked Questions
Your files stay on your computer. Dad promised.