这是我的
ResponseEntity<String> response= new ResponseEntity<String> (
"\"<200 OK OK,{\\\"status\\\":200,\\\"success\\\":true,\\\"info\\\":{\\\"mid\\\":{\\\"id\\\":\\\"95706\\\"}}},[]>\"", HttpStatus.OK);
Run Code Online (Sandbox Code Playgroud)
如何从这个响应中提取json?
尝试过response.getBody()
但给了我整个字符串。
任何帮助,将不胜感激
response.getBody() but giving me entire string.
ResponseEntity<String> response= new ResponseEntity<String> (
"\"<200 OK OK,{\\\"status\\\":200,\\\"success\\\":true,\\\"info\\\":{\\\"mid\\\":{\\\"id\\\":\\\"95706\\\"}}},[]>\"", HttpStatus.OK);
Run Code Online (Sandbox Code Playgroud)
响应.getBody(); 给出整个字符串而不是 json