JSONArray ccroot = jp.getJSONArray("城市代码");
for (int i = 0; i < ccroot.length(); i++) {
JSONObject o = (JSONObject) ccroot.get(i);
JSONArray county = o.getJSONArray("市");
for (int j = 0; j < county.length(); j++) {
weatherForecastDTO = new WeatherForecastDTO();
String countyName = county.getJSONObject(j).getString("市名");
String countyCode = county.getJSONObject(j).getString("编码");
}
}
自己对着改