JSON Diff

Compare two JSON objects and visualize their differences — added, removed, and changed keys highlighted.

About JSON Diff

JSON Diff is an essential tool for developers who need to compare JSON objects — whether reviewing API response changes between versions, debugging configuration drift, comparing database snapshots, or reviewing JSON schema migrations.

This tool performs a deep structural comparison of two JSON objects and presents the differences in three categories: added keys (present in B but not A), removed keys (present in A but not B), and changed keys (present in both but with different values). Nested objects are recursively compared, giving you a complete picture of exactly what changed at every level of the JSON hierarchy.

Common use cases include comparing API responses before and after a code change, reviewing Terraform state file differences, checking config file drift across environments, and validating JSON schema migrations in database pipelines.

Frequently Asked Questions

How deep does the comparison go?
The comparison is fully recursive — it diffs nested objects at any depth. Each changed nested object is shown with its full key path (e.g., address.city) so you can pinpoint exactly where in the structure the difference occurs.
Are array differences shown?
Arrays are compared by value — if two arrays are not strictly equal, the difference is shown as a value change. For fine-grained array diffing (insertion/deletion of specific elements), consider flattening the JSON first.
Is the comparison order-sensitive?
For objects, key order does not matter — {"a":1,"b":2} and {"b":2,"a":1} are considered identical. For arrays, order does matter — [1,2,3] and [3,2,1] are considered different.