Hi,
I am sending a photo to Imagga for identification and I'm getting back a large payload with a load of classifications (usually over 40).
I would like to set up a switch node so that if any of the classifications are bird then some processing is done, and if not then the response is dropped or an error is shown.
This is part of the payload:
payload: object
result: object
tags: array[62]
[0 … 9]
0: object
confidence: 100
tag: object
1: object
confidence: 74.7238693237305
tag: object
en: "bird"
2: object
3: object
4: object
5: object
6: object
7: object
8: object
9: object
[10 … 19]
[20 … 29]
[30 … 39]
[40 … 49]
[50 … 59]
[60 … 61]
I have a tried a switch with a "matches regex" for bird but when I can only set the property as a single entry in the payload, not everything from "Result" down.
Is there any way to recurse through the entries looking for a string and then choose a path based on the result?
Thank again for all your help!