JSON Diff Path

Compare two JSON documents and generate path-based diffs with JSON Pointer paths and RFC 6902 JSON Patch output.

Compare controls
Original JSON
Paste the baseline JSON document here. This version is treated as the source when paths and patch operations are generated.
Modified JSON
Paste the updated JSON document here. Added, removed, and replaced paths are calculated against the original input.
Diff results
Inspect filtered path records or switch to RFC 6902 JSON Patch output without recomputing the comparison.
Showing 4 of 4 changes
Operation filters
[
  {
    "op": "replace",
    "path": "$.active",
    "pointer": "/active",
    "oldValue": true,
    "newValue": false
  },
  {
    "op": "add",
    "path": "$.region",
    "pointer": "/region",
    "newValue": "us-east-1"
  },
  {
    "op": "replace",
    "path": "$.user.name",
    "pointer": "/user/name",
    "oldValue": "Alice",
    "newValue": "Alice Chen"
  },
  {
    "op": "add",
    "path": "$.user.roles[2]",
    "pointer": "/user/roles/2",
    "newValue": "admin"
  }
]

Overview

JSON Diff Path compares two JSON documents and turns every structural change into a readable path record with both JSONPath and JSON Pointer output.

When To Use It

Use it when you need to review API payload changes, inspect configuration migrations, or generate RFC 6902 JSON Patch operations for automation.

How It Works

The tool parses both JSON inputs, computes add, remove, and replace changes, then lets you filter those operations and switch between a path list and JSON Patch output in the same result panel.