So sánh JSON miễn phí trực tuyến
Compare two JSON objects and see the differences highlighted.
About JSON Comparison
JSON comparison (also called JSON diff) identifies the differences between two JSON structures. Unlike plain text diff, a JSON-aware comparison understands keys and values, so it can tell you exactly which properties were added, removed, or changed · regardless of key ordering.
This tool performs a deep, recursive comparison of two JSON objects. It handles nested objects, arrays, strings, numbers, booleans, and null values. All processing happens locally in your browser.
Common Uses
- Compare API responses before and after a code change
- Find differences between configuration files
- Debug data discrepancies in database exports
- Review changes in package.json or manifest files
- Verify data migration accuracy
- Compare test fixture data
Frequently Asked Questions
Does key order affect the comparison?
No. JSON objects are unordered by specification, so {"a":1, "b":2} and {"b":2, "a":1} are treated as identical. Only actual value differences are reported.
How are arrays compared?
Arrays are compared by index. If the array at index 2 differs between the two inputs, that specific index is flagged. Added or removed elements at the end are also detected.
What happens with deeply nested objects?
The comparison is fully recursive. Nested objects and arrays at any depth are compared property by property. The output shows the full path to each difference (e.g., "user.address.city").