Skip to content
  1. Home
  2. Developer
  3. JSON Compare

JSON Compare

Paste two JSON documents to see exactly what was added, removed or changed.

How it works

Both documents are parsed and compared value by value. Objects are matched by key, so the order of keys does not matter. Arrays are compared position by position, so inserting an item near the start will show later items as changed.

Each difference is listed with a path such as $.address.city or $.tags[2], where $ is the top level. A value is “added” if only the changed document has it, “removed” if only the original has it, and “changed” if both have it with different values or types.

Frequently asked questions

Does key order matter?

No. {"a":1,"b":2} and {"b":2,"a":1} are identical.

How are arrays compared?

Item by item at the same position. If your arrays are lists where order does not matter, sort them first.

Is my JSON uploaded?

No. Both documents are compared in your browser.