String 转JSON

时间:2014-05-24 01:16:25   收藏:0   阅读:250

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

String 转JSON,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!