JSON Difference Checker

Find structural differences between two parsed JSON values using object keys and array positions.

Your workspace

Server processing

Review the example values, then run the tool.

This tool compares two JSON structures to identify discrepancies in object keys and array positions.

Comparing JSON structures

  1. Paste your primary JSON data into the Input field.
  2. Paste the second JSON structure you wish to compare into the Second JSON field.
  3. Review the generated report, which lists the path and nature of each difference found between the two inputs.

How differences are identified

The tool parses both inputs and performs a recursive comparison. It tracks the path to each element, noting when keys are added or removed, or when values at specific array indices differ. If the data types at a specific path do not match, the tool flags this as a structural difference.

Interpreting results

The output indicates whether the two JSON values are identical. If differences exist, the report provides a list of specific paths where the structures diverge. Each entry specifies the path, the original value (before), and the new value (after), or explicitly marks keys as added or removed.

Structural comparison example

Input: {"id": 1, "tags": ["a"]} Second JSON: {"id": 1, "tags": ["b"]}

The tool identifies a difference at path $.tags[0], showing the change from "a" to "b".

JSON comparison questions

Does this tool handle nested objects?

Yes, the tool recursively compares nested objects and arrays, reporting the exact path to any differing key or index.

What happens if the JSON is invalid?

The tool requires valid, parseable JSON. If the input is malformed or invalid, the operation will fail and return an error message.

Continue your workflow