| | |
| | | */ |
| | | @PostMapping("/investigate/testBody") |
| | | public String testBody(@RequestBody String body){ |
| | | System.out.println("body = " + body); |
| | | JSONObject jsonObject = new JSONObject(body); |
| | | Object data = jsonObject.get("data"); |
| | | System.out.println("data = " + data.toString()); |
| | | JSONObject jsonData = new JSONObject(data.toString()); |
| | | Object res = jsonData.get("res"); |
| | | System.out.println("res = " + res); |
| | | JSONArray jsonArray = jsonData.getJSONArray("res"); |
| | | System.out.println("jsonArray = " + jsonArray); |
| | | System.out.println("jsonArray.length() = " + jsonArray.length()); |
| | | if (jsonArray.length()>0){ |
| | | String zdxsfzqkry = jsonArray.getJSONObject(0).get("zdxsfzqkry").toString(); |
| | | return zdxsfzqkry; |