JSONObject.parseObject(jsonStr);和JSONObject.fromObject(jsonStr);

时间:2018-08-22 01:17:56   收藏:0   阅读:1634

虽然都是返回JSONObject,但是

JSONObject.parseObject(jsonStr);这个方法需要导入import com.alibaba.fastjson.JSONObject;

JSONObject.fromObject(jsonStr);这个方法需要导入import net.sf.json.JSONObject;

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