JSONObject.parseObject(jsonStr);和JSONObject.fromObject(jsonStr);
时间:2018-08-22 01:01:37
收藏:0
阅读:1864
虽然都是返回JSONObject,但是
JSONObject.parseObject(jsonStr);这个方法需要导入import com.alibaba.fastjson.JSONObject;
JSONObject.fromObject(jsonStr);这个方法需要导入import net.sf.json.JSONObject;
原文:https://www.cnblogs.com/yadongliang/p/9515314.html
评论(0)