public static void main(String[] args) { /** * 解析jsonArray */ String jsonArray = "[{"provece":"qinghai"},{"beijing":"chaoyang"}]"; getJsonArra(jsonArray); } public static void getJsonArra(String jsonArray) { JSONArray jsonArra = JSONObject.parseArray(jsonArray); for (int i = 0; i< jsonArra.size(); i++) { JSONObject obj = (JSONObject) JSONObject.toJSON(jsonArra.get(i)); Iterator<Entry<String, Object>> it = obj.entrySet().iterator(); while(it.hasNext()) { Entry<String, Object> entry = it.next(); System.out.println(entry.getKey() + "," + entry.getValue()); } } }