日期:2014-05-17 浏览次数:20792 次
String json = "[{\"36801\":\"hhh\",\"36802\":\"hop\",\"36800\":\"pppp\",\"36803\":\"jjjjj\"}]"; System.out.println(json); JSONArray array = JSONArray.fromObject(json);// json数组 for (int i = 0; i < array.size(); i++) { JSONObject object = (JSONObject) array.get(i); System.out.println(object.getString("36801")); System.out.println(object.getString("36802")); System.out.println(object.getString("36800")); System.out.println(object.getString("36803")); }
------解决方案--------------------