jsondiff icon indicating copy to clipboard operation
jsondiff copied to clipboard

No difference label if one of JSON is empty

Open tatulea opened this issue 4 years ago • 0 comments

Hi,

I did some tests with the library and I have a case scenario where one of the compared JSON is empty: { }. I am using syntax='explicit' and the diff returns me exactly the JSON that is not the one empty. My problem is that I would like it to return me something like:

{
  insert: ...
}

The "insert" tag is quite important during my parsing.

tatulea avatar May 15 '20 20:05 tatulea