@PostMapping(value = “/test”)
public JSONObject Test(InputStream inputStream) {
JSONObject json=new JSONObject();
try {
byte[] buffer = new byte[1024];
// System.out.println(result);
result = org.apache.commons.lang3.StringEscapeUtils.unescapeJava(result);//去转义符 斜杠
JSONObject jsonObject=JSONObject.fromObject(newStr);
e.printStackTrace();
}
json.put(“result”, result);
return json;
}
亲测有效