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)