<-- back

Vim, format JSON file

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