jsonrepair icon indicating copy to clipboard operation
jsonrepair copied to clipboard

Return a list of fixes to original JSON

Open gloryknight opened this issue 3 years ago • 1 comments

Thanks for the nice library. jsonrepair returns a single value. To keep the API, I suggest to add a new function e.g. jsonrepairer which returns the fixed JSON and an array of fixes the library performed on the original JSON. The list could be later inspected if somebody is interested in possible data corruptions.

gloryknight avatar Nov 17 '21 08:11 gloryknight

Yes, that would be really great to have the function also return a list with the applied fixes. Some fixes are more obvious than others, and it could be that certain situations can be interpreted in multiple ways. So maybe it is also possible to add information about that. Thanks for your suggestion 👍

josdejong avatar Nov 17 '21 15:11 josdejong