sunjw / jstoolnpp

A JavaScript (JSON) tool for Notepad++ (formerly JSMinNpp) and Visual Studio Code.
GNU General Public License v2.0
283 stars 24 forks source link

Additional Auto Correct Functionality in JSFormat #125

Closed SquareWaffles closed 2 years ago

SquareWaffles commented 2 years ago

When using the JSON Sort function JSTools will auto correct some format issues such as converting sing quoted keys and string values to double quoted. Is there any way that functionality can be included in the JSFormat function?

Additionally would it be possible to auto format common reserved values such as None to null, True to true, and False to false?

JSTools

sunjw commented 2 years ago

No, not possible. JSON sort just try its best to parse what you wrote as JSON and re-write it. It's not an auto correct function. And if you really need this kind of feature, you should check Visual Studio Code or some other IDEs. They can really parse what is in your file, and provide some suggestions.