Aeolun / react-diff-viewer-continued

A simple and beautiful text diff viewer component made with Diff and React.
https://aeolun.github.io/react-diff-viewer-continued/
MIT License
127 stars 36 forks source link

JSON Diff viewer not working correctly #19

Open abhinav1311 opened 1 year ago

abhinav1311 commented 1 year ago

if any of the json file is not correct and fails in parsing then its not working and throwing error. for example if we remove comma from old json and check it will give parse error.

Difference viewer should show all the differences not just parsed json

Aeolun commented 1 year ago

If you are diffing JSON (really JS objects) the JSON has to be valid. If you are diffing text then it shouldn't matter (but it's probably hard to convert invalid JSON to text).

Can you provide examples of the failing files/code?