jq官网 : http://stedolan.github.io/jq/
下载binary之后可以直接调用,详细安装见:http://stedolan.github.io/jq/download/
简单使用方式:
1,json文件友好显示
cat jsonfile | path_to_jq/jq .
2,获取json某key的value
cat jsonfile | path_to_jq/jq ".key"
更多操作,见:http://stedolan.github.io/jq/manual/
to be continued...