JSONArray json = JSONArray.fromObject(childNode.toArray()); String s = json.toString(); response.setContentType("text/json; charset=UTF-8"); response.setCharacterEncoding("UTF-8"); try { response.getWriter().write(s); } catch (IOException e) { e.printStackTrace(); }
本文出自 “梦朝思夕” 博客,请务必保留此出处http://qiangmzsx.blog.51cto.com/2052549/1381864