Reputation: 19432
I have the following JSON array
[
{
"login": "foo",
"id": 111
},
{
"login": "bar",
"id": 222
},
{
"login": "foobar",
"id": 333
}
]
How can I leverage the jq
(preferrably) to check whether the object with "login": "bar"
is member of this array?
Upvotes: 0
Views: 205