npise
5 years agoNew Contributor II
Jsonpath begins with
Below is my input, i am trying filter for id where type == file and name begins with “Send Email”
expression i used in mapper jsonPath($, “entity.entries[?(@.type == ‘file’ && @.name =~ /Send Email...
- 5 years ago
Thank you all!!
jsonPath($, “entity.entries[*]”).filter(x => x.hasPath(‘type’) && x.type == ‘file’ && x.hasPath(‘name’) && x.name.startsWith(‘Send Email’)).length >0
This worked!