Request: names of users who have the admin role
Input:
name: a
roles: user
admin
name: b
roles: user
name: c
roles: admin
jq program: map(select(.roles | index("admin")) | .name)
Output:
a
c