Here's a similar trick with the Python json module:
echo '{"hello":"there"}' | python -mjson.tool echo '{"hello":"there"}' | python -mjson.tool echo '{"hello": "there"}' | python -c "import json, sys; print json.dumps(json.load(sys.stdin), indent=4)"
Thanks for the tip! echo '{"hello":"there"}' | json_xs echo '{"hello":"there"}' | perl -MJSON -MDDP -E '$f = decode_json readline; p $f'