Hi,
I have a JSON of the structure:
{
"data": [
{
"id": "1232",
"tags": [
"tagA",
"test",
"tagB"
], "more": true
},
{
"id": "2232",
"tags": [
"tagD",
"test",
"tagB"
], "more": true
},
{
"id": "3432",
"tags": [
"tagA",
"test",
"tagG"
], "more": true
}
]
}
Now I try to get the entry in data that has a specific entry in tags, e.g. tagG.
Expected Output:
{
"id": "3432",
"tags": [
"tagA",
"test",
"tagG"
],
"more": true
}
Unfortunately all my tries to query this in jsonata fail.
all tries e.g. like data[tags="tagG"] or using $contains bring always no or all results.
Can you help me or is this not possible with JSONATA?