Saturday, July 7, 2012

prettyprinting json in console.


    $ curl -s http://someapi/cats.json | python -mjson.tool

1 comment:

  1. Python3.8 supports --jsonline option that allows you to parse files that contain one JSON record per line.

    ReplyDelete

Followers