{"widget": {
"debug": "on",
"window": {
"title": "Sample Konfabulator Widget",
"name": "main_window",
"width": 500,
"height": 500
},
"image": {
"src": "Images/Sun.png",
"name": "sun1",
"hOffset": 250,
"vOffset": 250,
"alignment": "center"
},
"text": {
"data": "Click Here",
"size": 36,
"style": "bold",
"name": "text1",
"hOffset": 250,
"vOffset": 100,
"alignment": "center",
"onMouseUp": "sun1.opacity = (sun1.opacity/100) * 90;"
}
}}
這是我的JSON字符串。現在我想在這個JSON中搜索名稱,然後顯示結果...在JSON中搜索對象
圖像名稱?文本名稱?或窗口名稱? – 2011-05-24 12:26:47
任何名稱......在這個完整的json對象 – 2011-05-24 12:27:51
中,請用一些代碼來澄清您的目的 – 2011-05-24 12:29:23