Install jsonlint
to act as syntastic json checker:
$ npm install jsonlint -g
Tell syntatastic about it:
" in your ~/.vimrc
let g:syntastic_json_checkers = ['jsonlint']
Get some syntax highlighting (also covers ftdetect to set json filetype)
" in your ~/.vimrc
Bundle 'elzr/vim-json'
" Disable fancy concealing of attribute quotes.
let g:vim_json_syntax_conceal = 0
Pretty Print JSON
I used to work with large JSON objects and pretty printing within vim was nice.
Install
jsontool
to make working with JSON easier:Add this awesome vim function to your vimrc!