Comparing values, not characters.
Both documents are parsed, then walked side by side. Re-indentation, key order and trailing whitespace therefore produce no differences at all, which is exactly what makes the report usable on two exports of the same object.
| Marker | Means |
|---|---|
+ | Present in the second document only |
- | Present in the first document only |
~ | Same path, different value — both sides are printed |
{
"version": 2,
"tags": ["a", "b"]
} {
"version": 3,
"tags": ["a"]
} That pair reports ~ $.version: 2 → 3 and - $.tags[1]: "b": one changed scalar, one removed array element, each addressed by path instead of by line number.
Two things to keep in mind
- ▸Arrays are positional. Insert one item at the front and every later index reads as changed, because a list entry has no identity to match on.
- ▸
1and"1"are different values: a type change is reported as a change, not filtered out as noise.
What you get on this page
- ▸Structural diff by JSON path
- ▸Added, removed and changed value markers
- ▸Compare against the current formatted output
- ▸Local-only comparison
Because bracekit is a static application, this page loads quickly, caches well and never sends your data to a parsing server. Your formatting preferences, recent documents and snippets stay in local storage.