showing results for - "jq select"
Gabriela
10 Nov 2017
1$ json='[{"genre":"deep house"}, {"genre": "progressive house"}, {"genre": "dubstep"}]'
2$ echo "$json" | jq -c '.[] | select(.genre | contains("house"))'
3{"genre":"deep house"}
4{"genre":"progressive house"}
Jannik
18 Feb 2017
1$ jq '.[] | select(.location=="Stockholm")' json
2{
3  "location": "Stockholm",
4  "name": "Walt"
5}
6{
7  "location": "Stockholm",
8  "name": "Donald"
9}
10
similar questions
queries leading to this page
jq select