使用fastjson.JSONObject來將字符串轉換爲JSONobject

將String數據轉換爲json對象,可使用fastjson.JSONObject的parseObject方法來進行轉換web eg: String str = "{\"語文\":\"88\",\"數學\":\"78\",\"計算機\":\"99\"}"; JSONObject jsonObject; jsonObject = JSONObject.parseObject(str); json
相關文章
相關標籤/搜索