jq使用文档:http://stedolan.github.io/jq/manual/
举例:
{"name": "han","age": "20"}
curl -s -d ‘user=aa&pass=cc‘ http://www.example.com | jq ‘.name‘ >> file.txt
cat file.txt
han
curl命令+jq抓取json数据
原文:http://www.cnblogs.com/sohow/p/4251927.html