jsonrepair icon indicating copy to clipboard operation
jsonrepair copied to clipboard

Make jsonrepair accept an options object allowing to finetune what to fix or not

Open maid450 opened this issue 3 years ago • 1 comments

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.

maid450 avatar Nov 10 '21 14:11 maid450

That is a great idea, I like it 👍. Thanks for your suggestion.

josdejong avatar Nov 11 '21 21:11 josdejong