August 11, 2020
Pretty-print JSON files using the command line
If you have either Python 2 or 3 installed, use the json.tool module to pretty-print.
python -m json.tool <json_file> | lessYou can also stream input to Python instead of passing a file directly.
cat <json_file> | python -m json.tool | lessThis may be useful for viewing large minified JSON files that could slow down GUI applications.