The following path "$.store.book[?(@.authors[?(@.lastName1)])]" returns both books despite the fact none has lastName1 attribute.
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
The following path
"$.store.book[?(@.authors[?(@.lastName1)])]"returns both books despite the fact none haslastName1attribute.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