SyntaxFix
Write A Post
Hire A Developer
Questions
Adapted from this post on Processing JSON with jq, you can use the select(bool) like this:
select(bool)
$ jq '.[] | select(.location=="Stockholm")' json { "location": "Stockholm", "name": "Walt" } { "location": "Stockholm", "name": "Donald" }