JSON Change Viewer

Developer inspection

How JSON Change Viewer works

Compare two JSON documents privately by key and array index, with exact number comparison and JSON Pointer paths.

Compare structures, not formatting

Whitespace and object member order do not affect the comparison. Array order matters. The output distinguishes added, removed, changed and type-changed values; it is a human inspection report, not a JSON Patch.

Understand the paths

Locations follow JSON Pointer: each object key or array index is separated by a slash. A literal tilde becomes ~0 and a slash inside a key becomes ~1. The empty pointer is the entire document.

Handle risky input safely

This tool rejects duplicate object names, limits each input to 200,000 characters and nesting to 80 levels, and caps the report at 500 changes. Numbers are compared by decimal value without coercing large integer identifiers to JavaScript Number. Never paste real credentials or private records into an unfamiliar tool; the comparison itself runs locally and does not upload text.

Worked example

Changing {"a":1,"b":2} to {"b":2,"a":1} produces no differences. Changing {"a/b":"001"} to {"a/b":1} produces a type change at /a~1b. Array insertions are compared by index rather than guessed as moves.

Try the calculator

Reference material

Reviewed 28 November 2026. Sources explain the underlying concepts; the calculator uses original implementation and stated assumptions.