devpocket.dev

JSON Diff

Compare two JSON values by path and export the changes as JSON Patch.

Runs locally
Loading tool…

How to use

Paste the original JSON on the left and the new version on the right. Changes appear by JSONPath with their old and new values.

  • Enable Ignore array order when arrays behave like sets.
  • Disable Ignore key order when insertion order matters to your review.
  • Disable strict types to consider a number such as 42 equal to the string "42".

Copy the RFC 6902 tab when you need a machine-readable patch.

FAQ

What path format does the diff use?

The visual diff uses JSONPath-style paths beginning with $. The exported patch uses RFC 6901 JSON Pointer paths required by RFC 6902.

Does ignoring array order change the input?

No. Values are sorted only in memory for comparison; both input documents remain untouched.

Related tools