- Check you have Python installed:
python -V
- Install Pygments:
[sudo] pip install Pygments
- Copy
json_curlscript below and make it executable - Use like you would
curl:
json_curl -G http://date.jsontest.com/
| #!/bin/sh | |
| curl -s "$@" | python -mjson.tool | pygmentize -l json |
I like the idea, although it will work only with args without quotes. consider something more sophisticated like