ytyese
ytyese
2015-11-28 00:07

大神帮忙解答一下这个json数据怎么在java里用json lib解析存放到List里

  • 数据
  • java
  • json

[
{
"city": "",
"citys": [
{
"city": "北京",
"id": 2,
"level": 2,
"province": "北京",
"seq": 0,
"x": 116.405,
"y": 39.905
}
],
"id": 1,
"level": 1,
"province": "北京",
"region": "华北地区",
"seq": 0,
"x": 116.405,
"y": 39.905
},
{
"city": "",
"citys": [
{
"city": "上海",
"id": 4,
"level": 2,
"province": "上海",
"seq": 0,
"x": 121.473,
"y": 31.2317
}
],
"id": 3,
"level": 1,
"province": "上海",
"region": "华东地区",
"seq": 0,
"x": 121.473,
"y": 31.2317
}
]

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答