Closed
Description
Given the following document:
[
{
"name": "a",
"groups": [{
"type": "phase",
"name": "alpha"
}, {
"type": "not_phase",
"name": "beta"
}]
}, {
"name": "b",
"groups": [{
"type": "phase",
"name": "beta"
}, {
"type": "not_phase",
"name": "alpha"
}]
}
]
and the following JSON path query:
$[?(@.groups[?(@.type == 'phase' && @.name == 'alpha')] empty false)]
2.2.0 and 2.3.0 yield different results:
// 2.2.0 (selects 'a'):
[
{
"name": "a",
"groups": [{
"type": "phase",
"name": "alpha"
}, {
"type": "not_phase",
"name": "beta"
}]
}
]
// 2.3.0 (selects none):
[]
Metadata
Metadata
Assignees
Labels
No labels