Forum Discussion
SpiroTaleski
10 months agoValued Contributor
Find the attached sample pipeline. It uses array filter function for filtering the elements.
Hope it will helps.
While this would be a functional workaround, I was hoping to perform the whole operation through a purely jsonPath query.
- SpiroTaleski9 months agoValued Contributor
Not sure if JSONPath itself natively support case-insensitive comparison or regex matching directly(considering that it only returns single value).
Case insensitivity in native JSONpath is based on the engine. The example from the first message in the thread :
[?(@.email =~/yomomma@notreal.com/i )] [?(/yomomma@notreal.com/i.test(@.email))]
are from two of the libraries supported in jsonquerytoole.com (dchester and Goessner).
I have no idea which one Snaplogic is using, but I'm guessing neither of those as those examples don't work.