0
使用http://www.aspjson.com/或https://github.com/nagaozen/asp-xtreme-evolution/blob/master/lib/axe/classes/Parsers/json2.asp對象我設法讓我的數據從URL到字典對象。但我試過了,並且想不到使用aspjson從「開放」對象中獲取數據的方式:-(我還沒有設法找到使用json2.asp庫來獲取任何數據的方法,以下是我的數據:如何使用json2.asp或aspjson庫訪問傳統ASP中的JSON數據?
{
"restaurant": {
"id": 6,
"email": "[email protected]",
"visiblemail": "1",
"date": "2014-07-24 07:38:59",
"logo": "818_294.png",
"img": "818_554|818_558|818_563",
"opening": {
"sun": [
"closed"
],
"mon": [
"10.00",
"20.00"
],
"tue": [
"10.00",
"20.00"
],
"wed": [
"10.00",
"20.00"
],
"thu": [
"10.00",
"20.00"
],
"fri": [
"10.00",
"20.00"
],
"sat": [
"closed"
],
"hol": [
"zaprto"
]
},
"timetable": null
}
}
我知道這兩個庫使用字典對象來存儲數據,但我失去了我如何從對象檢索數據。
偉大的作品,這是我所需要的,我無法弄清楚如何迭代通過嵌套的對象:-( – Jerry2