服务器传送json到安卓端
json吧
全部回复
仅看楼主
level 3
13953178994 楼主
2016年06月26日 01点06分 1
level 3
13953178994 楼主
安卓端解析的代码:jsonObject=new JSONObject(jsonString);
JSONArray jsonArray=jsonObject.getJSONArray("data");
for(int i=0;i<jsonArray.length();i++){
jsonObject=jsonArray.getJSONObject(i);
newsBean=new NewsBean();
newsBean.newsIconUrl=jsonObject.getString("picSmall");
2016年06月26日 01点06分 3
1