jsp接口獲取json類型的數據

在測試代碼中:web String json = "{\"sex\": \"你猜\", \"name\": \"有種愛叫作東方不敗\"}"; JSONObject jsonObject = new JSONObject(json); String sex = jsonObject.getString("sex"); String name = jsonObject.getStri
相關文章
相關標籤/搜索