skip to Main Content

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


  1. There are some good Extensions for Json data in vs code :

    • JSON formatter
    • Prettify JSON
    • json
    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search