【发布时间】:2016-06-24 07:15:31
【问题描述】:
这是我的 JSON 数据:
{
"alldata":[
{
"college1":{
"data":[
{
"id":"1",
"name":"nithin",
"location":"alkd",
"time":"2016-06-24 12:02:28"
},
{
"id":"2",
"name":"xxx",
"location":"sdsdvxc",
"time":"2016-06-21 12:49:38"
},
{
"id":"3",
"name":"xcxc",
"location":"xzxzx",
"time":"2016-06-21 12:59:49"
},
{
"id":"4",
"name":"ZA",
"location":"BU",
"time":"2016-06-23 13:04:25"
},
{
"id":"5",
"name":"df",
"location":"ok",
"time":"2016-06-20{" id":"12",
"name":"vbnb",
"location":"sf",
"time":"2016-06-23 11:08:47"
},
{
"id":"13",
"name":"az",
"location":"vgfjghgbhjj",
"time":"2016-06-24 12:13:44"
}
],
"last_date":"2016-06-24 12:13:44"
}
},
{
"product1":{
"data":[
{
"id":"1",
"productname":"soapq",
"quantity":"2",
"time":"2016-06-23 13:12:27"
},
{
"id":"2",
"productname":"VCVC",
"quantity":"3",
"time":"2016-06-23 13:12:13"
},
{
"id":"3",
"productname":"fym",
"quantity":"3",
"time":"2016-06-23 13:12:53"
}
],
"last_date":"2016-06-23 13:12:53"
}
}
]
}
我想将这些数据放入 Android 中的数组列表中。
【问题讨论】:
-
JSON 格式不正确,请更新。
-
首先尝试你自己,做一些谷歌搜索。提前致谢
-
此 JSON 响应未格式化。您可以使用任何在线 JSON 格式化程序对其进行检查。
-
arraylist 类变量 ??