How to Compare JSON

When two payloads look similar, it is easy to miss important differences. This guide shows a fast way to compare JSON side by side and identify what changed.

Example input data

{
  "name": "Alice",
  "age": 30,
  "tags": ["admin", "editor"],
  "profile": {
    "city": "Melbourne"
  }
}

{
  "name": "Alice",
  "age": 31,
  "tags": ["admin", "owner"],
  "profile": {
    "city": "Sydney"
  },
  "active": true
}

Why this problem matters

JSON comparison helps with API debugging, config reviews, and regression checks, especially when nested fields or array values change.

Solution overview

Use JSON Diff Checker to compare both documents and review grouped Added, Removed, and Changed paths with nested field details.

Step-by-step guide

  1. Paste the first JSON document in the left input.
  2. Paste the second JSON document in the right input.
  3. Optionally keep Ignore key order enabled for logical comparisons.
  4. Run comparison and review Added, Removed, and Changed groups.
  5. Use the reported paths to validate payload changes or troubleshoot regressions.

Use the DataToolbox tool

Continue with the JSON Diff Checker to run this transformation in your browser.

Related tools

Related categories and guides