JSON comparison
Compare JSON values, ignoring formatting and key order.
About JSON comparison
Find meaningful differences between JSON documents rather than differences in indentation. Object key order is ignored; array order remains significant because an array is an ordered sequence.
Steps, example, and limitations
How to use it
- Enter the two JSON documents.
- Run the comparison.
- Inspect added, removed, or changed values and their paths.
Example
Input
Left: {"a":1,"b":2}
Right: {"b":2,"a":1}Result
No value differences; object key order is ignored.
Things to know
- Numbers are compared without first rounding long numeric tokens through floating-point conversion.
- A structural comparison does not know your application schema or whether a change is acceptable.