Web tools - ThomasG77/pygeogis GitHub Wiki

Pretty print + color with python from API (via http://bizorgnet.com/2012/06/14/prettyprint-json-in-terminal.html )

Add in ~/.bashrc

alias json='python -mjson.tool | pygmentize -f terminal256 -l javascript -O style=native'

and after do something like (after you source ~/.bashrc if needed)

curl -sL http://mydomain.extension/example.json | json

Python web server

Useful when need to test json call with a server host and not a file path

  python -m SimpleHTTPServer