如何从JSON格式搜索关键字。使用jQuery或JavaScript如何使用javascript或jquery从JSON搜索文本
我有一个JSON内容。从那我需要搜索并获得搜索关键字的ID。
关键词: “权威”=>我想获得ID为4
关键词: “基本”=>我想获得ID为3
{
"data": {
"1":[
{
"id":"3",
"title":"my title",
"content":"this is very basic sample content"
},
{
"id":"4",
"title":"My sample title and text",
"content":"renewed by a licensing authority may be signed by such officer by the State Government.<p></p>"
}
]
}
}
http://stackoverflow.com/questions/5288833/how-to-search-json-tree-with-jquery – Quantico 2014-09-18 17:31:21