DevMate
Back to Toolverse

Web

JSON Diff

Compare two JSON documents by structure, ignoring whitespace and object key order. Inspect added, removed, changed and type-changed paths with worked examples.

Local processing
Loading tool workspace...

About this tool

When to use it

Compare two JSON documents by structure, ignoring whitespace and object key order. Inspect added, removed, changed and type-changed paths with worked examples.

How to use it

Paste a saved API response into Original JSON and a new response into Changed JSON. Select Compare JSON, then inspect each path. Swap reverses the comparison. The report is displayed on the page; there is no dedicated copy, download or file-upload control in this workspace.

Guide updated . Examples checked against this implementation.

Worked examples

Review a response version change

Input

Original JSON: {"version":1}
Changed JSON: {"version":2,"stable":true}

Expected output

$.stable  added    missing → true
$.version changed  1 → 2

There are two structural changes. Paths are shown in sorted key order. Whitespace and object key ordering alone produce no differences.

Catch a type change

Input

Original JSON: {"count":8}
Changed JSON: {"count":"8"}

Expected output

$.count type 8 → "8"

A numeric count became a string. Arrays are compared by index, so reordering items also creates changes.

Errors and unsupported input

Original JSON: {"version":1,}

Remove the trailing comma in Original JSON. Both sides must parse before any comparison can be shown; use JSON Formatter to check each document separately.

Continue this workflow

  • JSON Formatter & Validator: Validate and format either input when the comparison reports a syntax error.
  • Text Diff: Compare the original text when whitespace, number spelling or key order matters.

Questions

Frequently asked questions

Does an equal result mean the text is identical?

No. Equal parsed values can have different spacing, key order or number notation. Use Text Diff for textual differences.