I am trying to use grep to filter an array of json objects to search for an array and if the value of any of the keys # 2-6 is yes, the values ββ1 and 7 are returned.
The array is below - in other words, if any of the values ββfor the "location" keys is yes, the name and description are returned as list items.
Any help is VERY appreciated.
[ { "name": "name", "location1": "no", "location2": "no", "location3": "yes", "location4": "no", "location5": "no", "description": "description of services" }, { "name": "name", "location1": "yes", "location2": "no", "location3": "yes", "location4": "no", "location5": "no", "description": "description of services" } ]
source share