Skip to content

JSON

JSON Structural Diff

Compare JSON values by structure and inspect additions, removals and changes using JSON Pointer paths.

How to use this tool
  1. Paste the original and changed JSON.
  2. Compare the documents.
  3. Inspect each changed path and its before and after values.

Loading tool…

Find this tool in

About this tool

What is JSON Structural Diff?

Compare the structure of two JSON values when reviewing a configuration change or an API response. Whitespace and object-key presentation are not useful differences, while types, array positions and actual values are. The path associated with a change helps locate the affected field without scanning two large formatted documents side by side.

A worked example

Find a price change independently of object-key order

Example input

{"price":10,"currency":"EUR"}

{"currency":"EUR","price":12}

Expected result

/price: 10 → 12

Place one object in each input. The price changed, but moving currency before price did not change that property's value. Array order does matter: swapping two items can produce several positional differences. Use the result as a review aid and inspect the full surrounding object before applying a change to production data.

Common mistakes and limits

  • JSON Pointer escapes a slash inside a property name as ~1 and a tilde as ~0. An unfamiliar path may describe a real key rather than an extra nesting level.
  • This is a comparison, not an automatic merge or conflict resolver. A displayed change does not establish which version is correct.

Features

What you can do

  • Ignore object key order
  • Compare nested arrays and objects
  • Added, removed and changed values
  • Copy or download the change report

Frequently asked questions

Questions about JSON Structural Diff

How is this different from the text diff?

This compares parsed JSON values, so whitespace and object key order do not matter. Arrays are compared by position. Use the text diff when line-level formatting changes matter.

Related tools