// 代码实例List list = new ArrayList();list.add("abc");list.add("123");net.sf.json.JSONArray jsonArray = net.sf.json.JSONArray.fromObject(list);System.out.println(jsonArray.toString());