JSONArray jsonArr =
JSONArray.toJSONObject("数组/集合");
JSONObject obj =
JSONObject.fromObject("对象");
所需的jar 包有:
json-lib-2.1.jar
json_simple.jar
commons-lang.jar
ezmorph-1.0.6.jar
commons-collections.jar
commons-beanutils-1.8.3.jar
原文地址:http://www.cnblogs.com/liyanHome/p/3736869.html