Linux 上解析 json的有效工具 jq
https://stedolan.github.io/jq/manual/
[[email protected] ~]# cat test.json { "name": "zhangsan", "skill":{ "a":"good", "b":"nice" } }
[[email protected] ~]# cat test.json | jq ‘.name‘
"zhangsan"
[[email protected] ~]# cat test.json | jq ‘.skill.b‘
"nice"
原文地址:https://www.cnblogs.com/jkklearn/p/9119291.html
时间: 2024-10-12 06:52:16