【发布时间】:2014-04-10 14:30:35
【问题描述】:
我正在尝试从下面的 json 文件中获取值“ObjectName”。
我尝试过这样做: 如果我 wright objects[s],我会得到 [object Object],[object Object],[object Object]
var objects = JSON.parse(this.responseText);
for (s in objects) {
data.push(Titanium.UI.createTableViewRow({title: "ObjectName: "
+ objects[s]
}));
This is my json file:
{
"new": [],
"system": [
{
"S": "30",
"T": "20121107130000",
"L": "213",
"ObjectName": "14. Rummet"
},
{
"S": "24",
"T": "20110831163900",
"L": "202",
"ObjectName": null
}
],
"returnes": []
}
【问题讨论】:
标签: json titanium titanium-mobile