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
转载于:https://www.cnblogs.com/sohow/p/4251927.html
最后
以上就是可爱吐司最近收集整理的关于curl命令+jq抓取json数据的全部内容,更多相关curl命令+jq抓取json数据内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复