安装

yum install jq -y

 

 

 新建文件 

vim test.json
#加入下面内容,保存
[{"name":"菜鸟教程","url":"www.runoob.com"},{"name":"google","url":"www.google.com"},{"name":"微博","url":"www.weibo.com"}]

 

查看文件内容

cat test.json
cat test.json |jq

 

 

 

 posted on 2022-10-27 14:21  boye169  阅读(28)  评论(0编辑  收藏  举报