You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are list of objects
{
"list": [
{
"value": 1,
"present": "yes"
},
{
"value": 2,
"present": "no"
},
{
"value": 3,
"present": "yes"
}
]
}
The path $.list[?(@.present == 'yes')].value.size() gives me wrong result.
Expected: 2
Actual: [null, null]
Looks like rather it calculate the size of the list, it calculate individuals elements inside list and since there is no string processing, it is returning null for each element, which is not expected.
The text was updated successfully, but these errors were encountered:
There are list of objects
{
"list": [
{
"value": 1,
"present": "yes"
},
{
"value": 2,
"present": "no"
},
{
"value": 3,
"present": "yes"
}
]
}
The path $.list[?(@.present == 'yes')].value.size() gives me wrong result.
Expected: 2
Actual: [null, null]
Looks like rather it calculate the size of the list, it calculate individuals elements inside list and since there is no string processing, it is returning null for each element, which is not expected.
The text was updated successfully, but these errors were encountered: