请教一个利用Gson解析Json格式的问题
--------------------编程问答----------------------------------------编程问答-------------------- 从服务器得到json字符串之后,用android提供的jsonObject和jsonArray处理
JSONObject resultJson=new JSONObject(strBuff.toString());
JSONArray infos = resultJson.getJSONArray("info");
for(int i = 0;i<infos.length();i++){
JSONObject info = (JSONObject)infos.get(i);
info.getString("id");
info.getString("cd");
}
补充:移动开发 , Android