【发布时间】:2016-08-26 07:20:11
【问题描述】:
{
places: [
{
id: 1,
place:"America",
name: "Robert",
age: "22",
place_lat: "10.017",
place_lon: "76.344"
},
{
id: 1,
place:"America",
name: "Albert",
age: "22",
place_lat: "10.017",
place_lon: "76.344"
},
{
id: 2,
place:"China",
name: "Robert",
age: "22",
place_lat: "10.017",
place_lon: "76.344"
}
,
{
id: 2,
place:"China",
name: "Albert",
age: "20",
place_lat: "10.017",
place_lon: "76.344"
},
{
id: 4,
place:"Paris",
name: "Albert",
age: "20",
place_lat: "10.017",
place_lon: "76.344"
}
],
success: 1
}
使用这个 json 值,我想在列表视图中显示它,我的预期结果是
美国 姓名:罗伯特 年龄:22 名称:阿尔伯特 年龄:22
中国 姓名:罗伯特 年龄:20 名称:阿尔伯特 年龄:20
巴黎 名称:阿尔伯特 年龄:20
我想在列表视图中添加这样的内容。但我做不到。我在列表视图中得到了这样的结果
美国 姓名:罗伯特 年龄:22 美国 名称:阿尔伯特 年龄:22
中国 姓名:罗伯特 年龄:20 中国 名称:阿尔伯特 年龄:20
巴黎 名称:阿尔伯特 年龄:20
【问题讨论】:
标签: arrays json jsonreader