新手提问,这样的json数据,android ;java 怎么解析,用 fastjson,主要是里面的map怎么解析

{
msg: "OK",
data: [
],
fid: "2",
name: "综合服务",
namecolor: "",
icon: "
http://sp.taizhou.com.cn/sort/data/attachment/common/c8/common_2_icon.gif
",
types: {
}
1: "公告启事",
2: "失物招领",
3: "消费团购",
4: "促销打折",
5: "台州特产",
6: "资讯服务"
{
}
code: 20000
}
最新回答
佐佐木惠理

2024-11-30 09:04:44

JSONObject jo = new JSONObject(你的值);
jsonarray ja = jo.getString("data");
for (int i = 0 ;i<ja.length;i++){
jsonobject jo2 = ja.getjsonobject(i);
}
下面类推啊