JustRandom

JSON Diff

Compare two JSON values semantically and review stable path-based differences.

Compare JSON values

Find semantic changes by property key and array index while ignoring formatting and object-key order.

The baseline value. Limit: 1,000,000 characters.

The value to compare against the original.

Comparison result

Differences will appear here after comparison.

How to compare JSON

  1. Paste the baseline value into Original JSON.
  2. Paste the updated value into Changed JSON.
  3. Select Compare JSON and review Added, Removed, and Changed entries.
  4. Copy the plain-text diff when you need to share the report.

Path-based comparison example

Changing a name and adding an active flag produces entries like:

CHANGED $.name
Before: "Just Random"
After: "JustRandom"

ADDED $.active
After: true

Semantic rules and defensive limits

Formatting whitespace and object-key order are ignored. Objects compare by key, arrays by index, and primitive values by JSON type and value. Missing data remains distinct from null, and a type change is reported once at its path.

Each input is limited to 1,000,000 characters. Comparisons stop without partial output above 100 levels, 50,000 visited nodes, or 10,000 differences.

Local processing and scope

Your input and results are processed in this browser and are not uploaded by this tool. The report explains differences but does not modify either input or guarantee that either value matches an application schema.

Frequently asked questions

Does object property order count as a difference?

No. Object keys are matched by name, while array entries are compared by their numeric index.

Does this produce JSON Patch?

No. It produces a readable path-based report, not JSON Patch, merge-patch, or an automatically applicable change set.

How are unusual property names shown?

Simple keys use dot notation. Keys with spaces, dots, or other special characters use safely escaped bracket notation.

Related tools

Explore another available JustRandom tool that may help with a related task.