jqについて、ここに記述してください。
https://en.wikipedia.org/wiki/Jq_(programming_language) なぜかリンクがおかしい。
jq コマンドを使う日常のご紹介
https://qiita.com/takeshinoda@github/items/2dec7a72930ec1f658af
1. manual
https://stedolan.github.io/jq/ https://stedolan.github.io/jq/manual/
man jp
$ echo "Hello, world!" | jq -R '.'
"Hello, world!"
$ echo '{"foo": 42}' | jq '.["foo"]'
42
2. tutorial
https://stedolan.github.io/jq/tutorial/
curl 'https://api.github.com/repos/stedolan/jq/commits?per_page=5' | jq '.[0]'
jq '.[0] | {message: .commit.message, name: .commit.committer.name}'
3. DNS lookup service
$ curl https://dns-api.org/A/x.s1.brau.jp
[
{
"name": "x.s1.brau.jp.",
"ttl": "300",
"type": "A",
"value": "127.0.1.1"
}
]