Overview If you want to reformat JSON output from a single line to a nicely formatted document, you can use the following trick. cat boring.json | python3 -m json.tool > pretty.json