Hi I want get legth of array after Filter with JsonPath.
Is it possible ?
My filter is $.issues.[?(@.severity == 'MAJOR')].length()
My Json is
{
"issues": [
{
"severity": "MAJOR"
},
{
"severity": "MINOR"
},
{
"severity": "MAJOR"
},
{
"severity": "MAJOR"
},
{
"severity": "MAJOR"
}
]
}
Possible workaround for Jayway JsonPath implementation
$.length($.issues.[?(@.severity == 'MAJOR')].length())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With