zgrossbart / jdd

A semantic JSON compare tool
http://www.jsondiff.com
Apache License 2.0
1.03k stars 180 forks source link

`null` values are not properly compared #7

Closed richardsavio closed 7 years ago

richardsavio commented 7 years ago

Diffs are not detected if the first JSON has a null value, but the second JSON has something else. Diffs are generated the other way around though.

An example:

Left JSON:

{"a":null, "b":"xyz", "c":null}

Right JSON:

{"a":null, "b":null, "c":123}

There are two diffs here, "b" and "c". But only "b" is detected.

zgrossbart commented 7 years ago

I have merged in the pull request and done a tiny amount of cleanup. This issue is now fixed.