So sánh JSON miễn phí trực tuyến

Compare two JSON objects and see the differences highlighted.

No data leaves your device

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

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").

Related Tools