JSON Difference Checker
Find structural differences between two parsed JSON values using object keys and array positions.
Your workspace
Server processingThis tool compares two JSON structures to identify discrepancies in object keys and array positions.
Comparing JSON structures
- Paste your primary JSON data into the Input field.
- Paste the second JSON structure you wish to compare into the Second JSON field.
- 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
JSON Schema Generator
Infer a JSON Schema from one example value; inferred types and required keys describe only that example.
JSON Schema Validator
Validate a JSON instance against an entered JSON Schema with remote references disabled.
JSON String Escaper
Encode text as one double-quoted JSON string literal.
JSON String Unescaper
Decode a complete double-quoted JSON string literal.