by nigma · 14y ago · 0 comments
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'