I log/print JSON data returned from the API to check if it is right before playing with it.
Is there a way in vs code to prettify the JSON response in the console?
I log/print JSON data returned from the API to check if it is right before playing with it.
Is there a way in vs code to prettify the JSON response in the console?
2
Answers
There are some good Extensions for Json data in vs code :
Yes, U can
install the Prettify JSON extension -> One popular extension for this purpose is "Prettify JSON". U can install it from the Visual Studio Code Marketplace
u may need to configure the extension to automatically prettify JSON output in the debug console.
If you don’t wan to install an extension,as me you can manually copy the JSON output from the debug console and paste it into a JSON prettifier tool, such as an online JSON formatter.