zgrossbart / jdd

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

Quotes not escaped correctly in difference output #20

Closed knafekh closed 6 years ago

knafekh commented 6 years ago

More than one escaped quote in a string value will not keep its escape character in the output.

An example of a json value that will provide invalid JSON in the output: "link": "<a href=\"http://google.com/\">Google</a>" The second escape character '\' is dropped.

zgrossbart commented 6 years ago

This change should fix that issue. I will deploy it soon.