Vim, format JSON file
December 19, 2018
I have to note it, it’s just brilliant!
If you want to format a JSON file opened in Vim then just run
: %!python -m json.tool
Stolen from this awesome post - Format JSON in Vim using Python’s json.tool module
Feel free to contact me for feedback or questions. Find my contacts on About page.