Skip to content

Instantly share code, notes, and snippets.

@ogawatti
Created August 23, 2022 04:25
Show Gist options
  • Save ogawatti/b401f3cd1f8a039436a55137ac500c3d to your computer and use it in GitHub Desktop.
Save ogawatti/b401f3cd1f8a039436a55137ac500c3d to your computer and use it in GitHub Desktop.
jq command reference
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