Pretty print json with jq.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 19 Feb 2017 12:38:42 +0200
changeset 2097 614569553a08
parent 2096 bb22372fc204
child 2098 1a896c3e47c2
Pretty print json with jq.
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