e.g.
$.store.book[*].authors[?(@.lastName=="Waugh")]^title
Example JSON:
{
"store": {
"book": [
{
"authors": [
{
"firstName": "Nigel",
"lastName": "Rees"
},
{
"firstName": "Evelyn",
"lastName": "Waugh"
}
],
"title": "Sayings of the Century"
},
{
"authors": [
{
"firstName": "Herman",
"lastName": "Melville"
},
{
"firstName": "Somebody",
"lastName": "Else"
}
],
"title": "Moby Dick"
}
]
}
}
ref RedisJSON/RedisJSON#494
e.g.
Example JSON:
{ "store": { "book": [ { "authors": [ { "firstName": "Nigel", "lastName": "Rees" }, { "firstName": "Evelyn", "lastName": "Waugh" } ], "title": "Sayings of the Century" }, { "authors": [ { "firstName": "Herman", "lastName": "Melville" }, { "firstName": "Somebody", "lastName": "Else" } ], "title": "Moby Dick" } ] } }ref RedisJSON/RedisJSON#494