嗨我希望在使用JsonPath过滤后得到数组的长度。
有可能吗?
我的过滤器为$.issues.[?(@.severity == 'MAJOR')].length()
我的Json是
{
"issues": [
{
"severity": "MAJOR"
},
{
"severity": "MINOR"
},
{
"severity": "MAJOR"
},
{
"severity": "MAJOR"
},
{
"severity": "MAJOR"
}
]
}