Why a text diff is the wrong tool for JSON
When two JSON files differ, the first idea is to run a normal text diff on them. That works when both files were written by the same program in the same way. It fails as soon as they were not. One API returns keys in a different order. One file is formatted with two spaces and the other with four, or on one line. A text diff then shows almost every line as changed, and the one real change is lost in the noise. JSON is data, not text, so it needs a comparison that reads the data.
This tool parses both documents and compares the values. Objects are compared key by key, whatever order the keys are in, so reordering is not a change. Spacing and line breaks do not exist after parsing, so formatting is not a change either. Numbers are compared by value, so 1.0 and 1 are the same. A number that became a string is reported, because "1" and 1 are different types and code that reads them behaves differently. Large numbers are compared from their exact text, so two IDs that differ in their last digit are told apart.
Each difference is reported with its path, such as $.items[3].price, and its old and new values. Added values are marked +, removed values −, and changed values ~. The summary counts each kind. Copy the report to get one line per change, in a plain format that reads well in a ticket, a chat message or a pull request comment. Seeing $.config.timeout: 30 → 60 is clearer than finding the same change inside a page of reformatted lines.
Arrays are the one place to think carefully. Items are compared by position: the first with the first, the second with the second. That is right for lists where position means something, such as coordinates or steps. For lists of records where order does not matter, inserting one record at the top shifts all the others, and each position shows as changed. The tool does not match records by an ID field. If order is not meaningful in your data, sort both lists the same way before comparing.
Both documents stay in your browser. That makes the tool safe for comparing API responses, configuration exports or database records that contain personal data or secrets. It takes up to 2 MB of JSON on each side and lists the first 2,000 changes on the page; the copied report always has every change.