# HG changeset patch # User Oleksandr Gavenko # Date 1487500722 -7200 # Node ID 614569553a081b0eaa55a0752022e999585e8d30 # Parent bb22372fc204e2886bb226350b8a77d89246222a Pretty print json with jq. diff -r bb22372fc204 -r 614569553a08 prettyprint.rst --- a/prettyprint.rst Sun Feb 19 12:33:28 2017 +0200 +++ b/prettyprint.rst Sun Feb 19 12:38:42 2017 +0200 @@ -17,6 +17,13 @@ json ==== +With ``jq`` (available in Debian/Cygwin):: + + $ jq $FILE + $ curl -s http://.../... | jq + +By default ``jq`` produce colorized output in terminal! + With Python 2.6+:: $ python -m simplejson.tool $FILE