Hunter的大杂烩 技术学习笔记

September 3, 2021

linux命令行使用json格式化工具

Filed under: 技术话题 — hunter @ 8:27 pm

from https://zhuanlan.zhihu.com/p/77177160


{"word": "hello",
"source": [ {
"firstName": "John",
},
{
"firstName": "Hunter",
},
{
"firstName": "Tony",
}]
}

jq .word test.json

jq .source[].firstName test.json

 

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress