jsonrepair
jsonrepair copied to clipboard
Make jsonrepair accept an options object allowing to finetune what to fix or not
In one project I would like to fix missing quotes, commas, etc... but leave comments as later I'm using a parser that accepts comments.
It would be nice to be able to call something like jsonrepair(json_with_comments, {trimComments: false})
and have it fix everything except stripping comments.
Similarly it could accept options to disable every fixing rules available and have it fix everything by default like it works right now.
That is a great idea, I like it 👍. Thanks for your suggestion.