Need help accessing an array with a unique data structure

My goal is to know whether a contact has a specific tag or not. I need to access the ID of the tag. It is pretty deeply nested, and I had to get the key dynamically to reach the object. I figured out how to get the first index of the array, but I don’t know how to access the whole thing.

Here are screenshots of my situation.

  1. The JSON response I am trying to access
  2. What I tried
  3. The response I’m getting.


Hi @Michael_Montefusco

Please try to use map function to retrieve all tag ID.
Input:
image


Output:

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
Visit us here
Youtube Channel

3 Likes

Try

map(14.data.contacts.tags;ID)

3 Likes