json转换报错
cn.hutool.json.JSONException: Unterminated string at 396 [character 0 line 2]
可以试试把json里面的置位符更换成空字符
public static String replaceWithBlank(String str){ Pattern p = Pattern.compile("\\s*|\t|\r|\n"); Matcher m = p.matcher(str); String finishedReplaceStr = m.replaceAll(""); return finishedReplaceStr; }