How to Format JSON in Vim

Tyler Tyler (286)
Total time: 5 minutes 

Vim is amazing. Well, Python is doing all the work, but I still like Vim. Learn how to format JSON in Vim like a pro with this short guide!

tl;dr

Paste your json, and run this in vim normal mode.

:%!python -m json.tool

Posted in these interests:

vim
PRIMARY
23 guides
python
67 guides