Apache 的 common.lang工具包

1 org.apache.commons.lang.StringEscapeUtils工具类
2 
3 String str1 = "{\"resourceId\":\"dfead70e4ec5c11e43514000ced0cdcaf\",\"properties\":{\"process_id\":\"process4\",\"name\":\"\",\"documentation\":\"\",\"processformtemplate\":\"\"}}";
4 String tmp = StringEscapeUtils.unescapeJavaScript(str1);
去掉json字符串中反斜杠

 

posted on 2019-10-22 21:59  JAVA-ROAD  阅读(468)  评论(0编辑  收藏  举报

导航