摘要:
json解析list时,我原先的写法是:1 Map map = new HashMap();2 map.put("totalCount", totalCount);3 map.put("items", list);4 response.setContentType("text/json;charset=utf-8");5 String jsonString = "";6 JSONArray _JSONObj = JSONArray.fromObject(map); 7 jsonString = _J... 阅读全文