3 changes
Use the inputs above for your own values. The result follows the method and assumptions shown below.
How it works
Parse JSON; traverse values iteratively; compare array positions and object keys; report differences using escaped JSON Pointer paths.
Input definitions
- First JSON document
- Plain text; maximum 200,000 characters.
- Second JSON document
- Plain text; maximum 200,000 characters.
A worked example
- First JSON document
- {"a":1,"b":2}
- Second JSON document
- {"a":2,"c":3}
Assumptions & limits
JSON only, 200,000 characters per document and 20,000 visited nodes/differences. Up to 500 difference rows shown. Does not compare comments, formatting or duplicate object-key occurrences.
Sources & review
Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.
Method updated 2026-10-17. Reviewed against the stated method and example. Our verification approach.
Report an issue with this tool or suggest an improvement ↗
Common questions
Does this tool execute the code or data I paste?
Inputs are treated as data under the stated parser or transformation. Output is displayed as text. Parsing or formatting does not establish that the content is safe to execute elsewhere.
How does the JSON structural diff tool work?
Parse JSON; traverse values iteratively; compare array positions and object keys; report differences using escaped JSON Pointer paths.
What are the assumptions and limits of JSON structural diff?
JSON only, 200,000 characters per document and 20,000 visited nodes/differences. Up to 500 difference rows shown. Does not compare comments, formatting or duplicate object-key occurrences.