how to show data in json format at terminal code example Example: print json pretty linux echo '{"foo": "lorem", "bar": "ipsum"}' | python -m json.tool