-
Hi! Considering this response: [
{
"text": "Some great text",
"reason": "44",
"reactions": [
{
"name": "heart",
"users": [
"U01JK7CB0TE"
],
"count": 1
},
{
"name": "pigeon",
"users": [
"U01NMAR4LLE",
"U04KXRR5H6Z",
"U03DP251D9R"
],
"count": 3
},
{
"name": "car",
"users": [
"U01NMAW4LLE",
"U04KXRD5H6Z",
"U03DP211D9R"
],
"count": 3
}
]
}
] I'd like to filter the [
{
"text": "Some great text",
"reactions": [
{
"name": "pigeon",
"users": [
"U01NMAR4LLE",
"U04KXRR5H6Z",
"U03DP251D9R"
],
"count": 3
},
{
"name": "car",
"users": [
"U01NMAW4LLE",
"U04KXRD5H6Z",
"U03DP211D9R"
],
"count": 3
}
]
}
] I can get the filtering part to work on the What I've tried (based on the answer to a previous question I've asked here) is: My thoughts behind this were: Traverse to deepest node ( Any suggestions on how I could do this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think this does what you expect:
You just needed
to here:
I would have expected some kind of error to have appeared, I'll have to look into that separately. |
Beta Was this translation helpful? Give feedback.
I think this does what you expect:
You just needed
parent(2)
instead ofparent(1)
.parent(1)
took the scope from here: