sourcecodestack Team
Tools, guides & how-tos
You have two JSON payloads — maybe a staging API response and a production one, or a config file before and after a deployment — and something is different, but you cannot see what. Reading two nested JSON blobs side by side by eye is slow and error-prone. Here is how to find every difference in seconds, without installing anything or uploading sensitive data anywhere.
JSON differences hide well. Two files can be semantically identical but look completely different because of key order, indentation or line endings. The opposite is worse: a single changed boolean or a missing key buried five levels deep looks identical at a glance and breaks production anyway.
The classic command-line approach — diff a.json b.json — fails for the same reason: it compares lines, not structure. If one file is minified and the other pretty-printed, diff marks every line as changed even when the data is identical.
Because the comparison is structural, key order does not matter — {"a":1,"b":2} and {"b":2,"a":1} are treated as equal, and a minified file compares cleanly against a formatted one. The tool recurses into nested objects and arrays, so a difference at response.data.items[3].metadata.flags.beta is found just as easily as one at the top level.
Everything happens in your browser: the JSON is parsed with native JSON.parse() locally and never sent to a server, which matters when your payloads contain user data, tokens or internal URLs.
v2 of an API, diff a v1 and v2 response for the same resource to enumerate exactly what your client code must handle.package.json, tsconfig.json or app config across branches or machines to spot the setting someone changed by hand.If you need to compare plain text, code files, or anything that is not strictly JSON, use the Diff Checker instead — it does line-by-line comparison with the same private, in-browser approach, and handles everything from SQL dumps to essay drafts.
For a broader look at when JSON is the right format at all versus CSV or YAML, see JSON vs CSV vs YAML: when to use each.
Bottom line: never eyeball JSON differences. A structural diff finds in two seconds what manual reading misses in twenty minutes — and doing it in the browser means your data stays yours.
sourcecodestack Team
We build free, privacy-first browser tools and write practical guides on how to use them. Everything runs on your device — no uploads, no sign-ups.
What Is JSON? Complete Guide to JSON Formatting JSON — JavaScript Object Notation — is the lingua franca of mo…
A site will not load. Before you clear your cache, reboot the router, or file an angry support ticket, answer …
API Client Guide: Test APIs Online Without Postman Testing an API should be fast and frictionless. You have an…