日期:2014-05-20 浏览次数:21081 次
List list = new ArrayList(); list.add("张三"); list.add("李四"); JSONArray jsonArray = JSONArray.fromObject(list); System.out.println(jsonArray); String xmltest=new XMLSerializer().write(jsonArray); System.out.println(xmltest);