Example JSON
[
{
"id": 12,
"clientName": "super-client"
},
{
"id": 15,
"clientName": "helloClient"
}
]
I want to use JMESPath to check if each clientName field does not contain the text super-
and then display the result
I'm using the API connector tool for Google Sheets to parse a JSON I get via a call. I'm stuck with this.
Almost all the reference examples on JMESPath site have a named object or array. This JSON I have doesn't have any named objects.
I want to do something like
result = []
for entry in data:
if not entry['clientName'].find("super-"):
result.append(entry)
return result