by akv · 15y ago · 0 comments
echo '{"a": "hello", "b": "world"}' | python -c"import sys,json;j = json.loads(sys.stdin.read());print j['a']"
echo '{"a": "hello", "b": "world"}' | python -mjson.tool