java字符串去掉转义字符 主要使用的方法:
StringEscapeUtils.unescapeJava(s);
示例:
String result = "{\"param\":\"{\"code\":\"0\",\"message\":\"成功\",\"result\":[{\"claimStatus\":\"审核中\"}]}\",\"success\":\"Y\"}"; System.out.println("result:" + StringEscapeUtils.unescapeJava(result));
结果:
result:{"param":"{"code":"0","message":"成功","result":[{"claimStatus":"审核中"}]}","success":"Y"}