Skip to main content
All features

JSON compare

Compare two JSON payloads

JSON compare shows the difference between two payloads: which fields were added, removed or changed. Paste both sides and the changes are highlighted.

Two JSON payloads side by side with added and removed fields highlighted

Live demo

See what changed.

Two versions of the same response, diffed with the comparison code the app runs. Turn on Changes only to hide what stayed the same.

compare · v1 → v2

What changed1 added0 removed2 changed

  • id:42(unchanged)
  • name:"Ada Lovelace"(unchanged)
  • plan:"free""pro"(changed)
  • address(changed)
  • city:"London"(unchanged)
  • zip:"N1""N1 9GU"(changed)
  • tags(unchanged)
  • 0:"beta"(unchanged)
  • seats:5(added)

Runs in this page, on the same code the app uses.

In the app

Use it to check a response against an earlier one, or to see what a new API version changed.

Nothing is uploaded. The comparison happens in your browser.

How it works

From first click to result.

  1. 01

    Paste both sides

    Put the old payload on the left and the new one on the right. Swap them with one click.

  2. 02

    Read the diff tree

    Added, removed and changed keys are marked, and branches with no changes start collapsed.

  3. 03

    Count what moved

    A summary says how many keys were added, removed and changed, so a regression is easy to spot.

Capabilities

The details that matter.

  • + added - removed ~ changed

    Every change marked

    Each key is tagged by what happened to it, with the old and new value side by side when it changed.

  • filter: changes only

    Hide the noise

    Show only the branches that changed, however deep they sit in the payload.

  • path: items[0].name

    Know where it is

    Every change carries its full path, so you can find it again in the response.

  • upload: none

    Compared in the browser

    Neither payload leaves your device.

With Relay

Or ask Relay to do it.

Relay can diff two responses it has stored for a request and explain what changed between them.

Relay tools it uses

  • diff_responses
How Relay works →

Relay

  • Compare the last two responses of Get user and tell me what changed

Catch the change before your tests do.

Paste two payloads and read the diff. Nothing is uploaded.

Free, open source, no sign-up.