Thanks! I defined a custom function my vimrc so I don't have to remember the command :) Here is what you have to add to your vimrc file.
function! FormatJSON() :%!python -m json.tool endfunction
Thanks! I defined a custom function my vimrc so I don't have to remember the command :) Here is what you have to add to your vimrc file.
function! FormatJSON()
:%!python -m json.tool
endfunction