ZapKit

JSON diff

See exactly what changed between two versions of a config, API response or data file, by path, without being fooled by key order or formatting.

What is a JSON diff?

A JSON diff compares two JSON documents and reports their differences: values that were added, removed or changed, each identified by its path. It's used to review configuration changes, check what an API returns after a release, and debug why two environments behave differently.

Paste the original and changed versions. The tool counts changes, additions and removals, and lists each one with its path and the before and after values. Choose a key to match array items by, ignore capitals in text if needed, or switch to a line-by-line view of both documents with keys sorted.

How to use the JSON diff

  1. 1.Paste both versions

    Original on the left, changed on the right.

  2. 2.Set array matching

    Match list items by a key such as id, or by position.

  3. 3.Read the changes

    As a list of paths, or a line-by-line diff.

Example: two releases of a config

Version 2.3.0 and 2.4.0 of an API config, with users listed in a different order:

Changed
$.version, $.debug, $.features.export, $.users[id=2].role
Added
$.features.share, $.users[id=3]
Type changed
$.timeout: 30 → "30"

Seven real differences, and the reordered user list doesn't add noise.

Compared by meaning, not text

A plain text diff flags reordered keys and different indentation as changes. This compares the data itself: objects are matched key by key whatever their order, and the line view sorts keys first so only real differences show.

Arrays are tricky: when one item is inserted, every later position looks different. Matching items by a key such as id pairs them properly, so a reordered list of users shows only the users who really changed. A value that changes type, such as 30 becoming "30", is flagged separately because it often breaks code.

Frequently asked questions

Does key order matter?

No. Objects with the same keys and values are equal in any order.

What if array items have no id?

Clear the key box to compare items by position instead.

Can I export the differences?

Yes. Copy report gives a plain-text list of every change.

Is anything uploaded?

No. Both documents stay local.

More Developer tools