Friday, December 28, 2012

Simple json parser for bash using python

echo $YOUR_JSON_DATA | python -c "import json; import sys; data=json.load(sys.stdin); print data['results']"

 

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.