Command-line tool to pretty-print JSON string for human readability by PHP.
https://whitephp.net/2018/07/31/jf-cli-json-formatter.html
PHP needs to be a minimum version of PHP 7.0.0.
Globally by using Composer:
$ composer global require codegear/json-formatterFormat file data.json and output to screen:
$ jf data.jsonFormat file data.json and save to another file data_formatted.json:
$ jf data.json > data_formatted.jsonFormat current file:
:%!jf %or add a keymap in vimrc:
nnoremap <Leader>jf :%!jf %<CR>