Linux 上解析 json的有效工具 jq
https://stedolan.github.io/jq/manual/
[root@jinkk ~]# cat test.json { "name": "zhangsan", "skill":{ "a":"good", "b":"nice" } }
[root@jinkk ~]# cat test.json | jq '.name'
"zhangsan"
[root@jinkk ~]# cat test.json | jq '.skill.b'
"nice"