How this tool works
Try an example
How to compare two JSON documents
Paste the original JSON on the left and the changed JSON on the right, then choose Compare JSON. Filter additions, removals or changes, and copy the result for a review. Use valid JSON with quoted keys and no trailing commas.
Does JSON key order matter?
Object key order and indentation do not affect this comparison. Arrays are compared by index, so changing array order can produce several differences. For a character-level comparison, use Text Diff.
Are 1 and 1.0 different?
Numbers are compared by mathematical value, so 1 and 1.0 are equal. Large integers retain precision. A number and a string, such as 1 and "1", differ. A missing property also differs from a property whose value is null.
What do the result paths mean?
Paths use JSON Pointer. /users/0/name refers to the name of the first user. A slash in a key becomes ~1 and a tilde becomes ~0. Duplicate object keys are rejected because their meaning is ambiguous. Processing happens in your browser; each input is limited to 200,000 characters.