Skip to content

Formatting JSON in Vim

Python has a built-in json.tool module which can format JSON. To invoke with vim, simply run :%!python -m json.tool.