Please find the below extract from my lengthy JSON file.
{
"key" : "value",
"array" : [
{ "key" : 1 },
{ "key" : 2, "dictionary": {
"a": "Apple",
"b": "Butterfly",
"c": "Cat",
"d": "Dog"
} },
{ "key" : 3 }
]
}
Im trying to use this query - $.array[?(@.key=2)].dictionary.a,b,c
which is not fetching any results while using the jar
[
"Apple",
"Butterfly",
"Cat"
]