IvanMathy / Boop

A scriptable scratchpad for developers. In slow yet steady progress.
https://boop.okat.best
MIT License
3.84k stars 356 forks source link

Format single quoted JSON #309

Closed sachindayl closed 2 years ago

sachindayl commented 3 years ago

Formatting a single-quoted JSON body gives invalid JSON. Please check if the body has single quotes, convert them to double quotes, and then format JSON.

Joshfindit commented 2 years ago

I will likely make a script for "Convert all quotes to single quotes" and "Convert all quotes to double quotes" which would mean that this issue could be closed as a user would be able to convert quotes before formatting.

sachindayl commented 2 years ago

That should work! thank you.

Joshfindit commented 2 years ago

Added those scripts:

https://github.com/IvanMathy/Boop/pull/336/files

Feel free to download them and add them to your scripts folder.