net.sf.json.JSONObject 跟 org.json.JSONObject  的差异

一、首先这两个是不同包下的两个类这点一定要明确。 二、Json 对象的创建 String result= "{\"code\":\"0000\", \"msg\":{\"retailPrice\":99.99}} org.json.JSONObject:JSONObject json = new JSONObject(result); net.sf.json.JSONObject: JSONObj
相关文章
相关标签/搜索