以下是我的json数据
{
"primary": [
{
"secondary": {
"name": {
"fullname": "fullname1"
},"alias": "alias1"
},"reference": "reference1"
},{
"secondary": {
"name": {
"fullname": "fullname2"
},"alias": "alias2"
},"reference": "reference2"
}
]
}
现在,我想使用jsonpath根据此json数据中基于条件的全名值提取“别名”值。
我正在使用以下表达式,但无法解析结果
$。primary [*]。secondary [?(@。name.fullname ==“ fullname1”)]。alias