JSON structure comparison
Compare JSON additions, deletions, and changes without ignoring object key order and spaces. Also check differences in array positions and large numbers.
Input is not saved or sent. Sharing includes only a summary.
Result
Results appear here after execution.
View the original report·copy directly
Share result
Share the tool link and result text together. No URL is included in the result. Check the below content and then share it.
Usage examples and processing criteria
Comparing the previous {"name":"tool","count":2,"tags":["a","b"]} with the next {"count":3,"name":"tool","tags":["a","c"],"active":true} shows three differences: /count change, /tags/1 change, /active addition. The key order of name does not affect the result.
Frequently Asked Questions
What is different about this line comparison?
JSON first read the syntax, then compare object keys, array positions, and value types. Ignores whitespace and object key order. String “1” and number 1 are different, and arrays are compared by position, so intermediate insertions may change the subsequent item
Do large integers and decimals match exactly?
Numbers are not converted to floating-point numbers. 9007199254740992 and 9007199254740993 are different; 1, 1.0, and 1e0 are the same. -0 and 0 are compared as the same value. The compared number exponents support up to 99,999,999 in absolute value.
JSON What are the paths and constraints?
The path is a JSON Pointer; ~1 and ~0 are escaped. Empty paths refer to the entire document. Each input can read up to 200,000 characters, 100 depth, and 20,000 values. Duplicate keys are rejected. The screen displays up to 100 differences, and the report shows up to 1,000 differences, along with separate information on total difference count and trimming.
Calculation criteria and reference materials
- RFC 8259 — JSON
JSON syntax and interoperability considerations for number precision
- RFC 6901 — JSON Pointer
Object key, array position path, and ~0·~1 escape characters
Verification of calculation criteria: · Calculation·verification principles · Report errors