jsonpath 如何根据多个属性,取出json中的一条数据来,并显示

如题所述

var str_content ='';
var data_re = data.rows;
$.each(data_re, function(i, n){
str_content +='createDate:'+n.'createDate+'firstName:'+n.'firstName;

});
a搐掸陛赶桩非标石钵将lert(str_content);
逻辑是这样的,我没有测试追问

是要用{ "category":
"reference",
"author": "Nigel
Rees",
"title": "Sayings of the
Century",
"price":
8.95
}中的3个属性值确定一条数据。JsonPath(json, "$.store.book[?(@.category == 'reference')]");这个例子是一个属性,我想要的事3个属性

温馨提示:答案为网友推荐,仅供参考
相似回答