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

雖然都是返回JSONObject,可是json JSONObject.parseObject(jsonStr);這個方法須要導入import com.alibaba.fastjson.JSONObject; JSONObject.fromObject(jsonStr);這個方法須要導入import net.sf.json.JSONObject;
相關文章
相關標籤/搜索