prettyprint.rst
changeset 2097 614569553a08
parent 2096 bb22372fc204
child 2098 1a896c3e47c2
equal deleted inserted replaced
2096:bb22372fc204 2097:614569553a08
    14 http://en.wikipedia.org/wiki/Pretty-printer
    14 http://en.wikipedia.org/wiki/Pretty-printer
    15   Wiki article on pretty printing.
    15   Wiki article on pretty printing.
    16 
    16 
    17 json
    17 json
    18 ====
    18 ====
       
    19 
       
    20 With ``jq`` (available in Debian/Cygwin)::
       
    21 
       
    22   $ jq  $FILE
       
    23   $ curl -s http://.../... | jq
       
    24 
       
    25 By default ``jq`` produce colorized output in terminal!
    19 
    26 
    20 With Python 2.6+::
    27 With Python 2.6+::
    21 
    28 
    22   $ python -m simplejson.tool  $FILE
    29   $ python -m simplejson.tool  $FILE
    23 
    30