假设服务器发送:{"total":1,"rows":[{"adviseId":"1212","advisePhone":"133213","adviseName":"12312","adviseMon":null,"adviseTheme":"123123","adviseComplant":"12312"}]}
用JSON解析:
JSONObject jsonObject = new JSONObject(arg0.result);//arg0.result为页面返回json的数据
String string = jsonObject.get("rows").toString();//解析arg0.result中的键“rows”的值
String string2 = string.substring(1, string.length()-1);//去掉rows值中的[]
JSONObject json = new JSONObject(string2);//解析string2中的数据
String adviseId = json.get("adviseId").toString();取string2中键为“adviseId”的值
其他以此类推