dzhibas / SublimePrettyJson

Prettify/Minify/Query/Goto/Validate/Lint JSON plugin for Sublime Text 3 & 4
MIT License
2.03k stars 180 forks source link

Format invalid JSON ignoring errors ? #183

Open AnnanFay opened 6 months ago

AnnanFay commented 6 months ago

Is it possible to use this plugin to format invalid JSON?

My main use case is fixing other people's malformed JSON test cases.

So I get a single line of 'JSON', paste it into this online formatter then copy paste the formatted code into Sublime where I validate and fix the issues.

It would be faster if I could format the invalid JSON directly in Sublime before running the validator. I don't really care if it's exactly formatted correctly, as long as it's roughly correct.

Is this possible?