Created
August 23, 2022 04:25
-
-
Save ogawatti/b401f3cd1f8a039436a55137ac500c3d to your computer and use it in GitHub Desktop.
jq command reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jq -r .foo hoge.json # 出力の""を削除 | |
jq '.foo."bar/baz"' # /を含むキーをクエリ | |
jq '. | keys' hoge.json # キーを取得 | |
jq '.bar[] | select(.name=="baz")' hoge.json # 検索 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment