例如:String result={"code":200,"msg":null,"data":{"name":"b16129d5-cd8b-431b-878f-35b5a87a8758.pdf","url":"127.0.0.1"}
JSONObject respJson = JSONObject.parseObject(resultUrl);
获取code: respJson.get("code");
获取name String result=respJson.get("data").toString();
JSONObject respJson1 = JSONObject.parseObject(result);
String name=respJson1 .get("name").toString();
解析http请求返回的字符串
最新推荐文章于 2024-07-02 12:36:15 发布