Title

Response JSONObject JSONArray转化

String result = response.body().string(); Response;//获取内容字符串
JSONArray parseObject2 = JSONObject.parseObject(result, JSONArray.class);//字符串转JSONArray
JSONObject memberInfo = parseObject2.getJSONObject(0);//字符串转JSONArray转JSONObject
posted @ 2022-08-17 16:35  手中的小黄鸭  阅读(382)  评论(0)    收藏  举报