ToolJovia
Data

JSON Diff

Compare JSON values structurally after refusing retained numbers that would change decimal value.

✓ Browser-local processing

Loading tool…

How to use JSON Diff

Find actual data changes even when object-key order or indentation differs. Differences use JSON Pointer paths; array elements are compared by index rather than guessed identity.

  1. Paste the before and after JSON documents.
  2. Select Run tool to compare their data values.
  3. Review the result, then copy it or download the generated file.

Good to know

  • Up to 100,000 input characters, 10,000 values, and 40 nesting levels. Duplicate keys retain their last value. Comparison stops if a retained JSON number would change decimal value when parsed; quote original digits only when your schema permits a string, or use an exact-number comparison tool.
  • At most 5,000 reported changes. Array insertions can produce several index changes; this is not an executable JSON Patch. Negative zero keeps the existing comparison behavior; this is not an exact source-text comparison.

Separate data changes from object-key reordering

Paste the first object into Before JSON and the second into After JSON. The keep member moves in the source but keeps its value, so it is not reported. The a/b value changes and extra is added. Paths use JSON Pointer escaping: the slash inside the literal member name a/b becomes ~1, making /a~1b one member rather than two nested segments. Read each change with its before or after value before deciding how to update a configuration. This report describes parsed data; it is not a byte comparison or an executable patch.

Before JSON and After JSON

Before: {"a/b":1,"keep":true}
After: {"keep":true,"a/b":2,"extra":null}

Expected JSON change list

[
  {
    "path": "/a~1b",
    "change": "changed",
    "before": 1,
    "after": 2
  },
  {
    "path": "/extra",
    "change": "added",
    "after": null
  }
]
Try this in the tool

Common questions

Does a different key order count as a change?

No. Object properties are matched by name; array order still matters.

Keep going with related tools

All data →