Sublime Text 3 – Pertty Format JSON

You must be looking for some easy options to pretty format JSON data. Well, there are many websites which provides this capability and you can pretty format JSON data in browser. I use Sublime Text 3 text editor, and I was trying to see if I can pretty format JSON within the text editor itself.

You can follow these simple steps:

  1. Open Sublime Text 3 text editor
  2. If you are using MAC OS
    • Press Command + Shift + P
    • Then select “Install Package”
    • Search for “Pretty JSON”
    • Install
  3. If you are using Windows OS
    • Press CTRL + Shift + P
    • Then select “Install Package”
    • Search for “Pretty JSON”
    • Install
  4. Once the installation is complete, select JSON string
  5. If you are using MAC OS
    • Press Command + Control + J
  6. If you are using Windows OS
    • Press CTRL + ALT + J

Thats it! Now you don’t have to copy your JSON string from Sublime Text 3, paste in your browser, format it, then copy formatted JSON from browser and paste it back in your Sublime Text 3. Now you can pretty format your JSON string quickly in your text editor itself.

Leave a Reply

Your email address will not be published. Required fields are marked *