How to Format JSON in Vim
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
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!
Paste your json, and run this in vim normal mode.
:%!python -m json.tool
Many languages support assignment expressions, and with version 3.8 (PEP 572), Python is joining the party.