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字符串中反斜杠

猜你喜欢

转载自www.cnblogs.com/yuhuiqing/p/11722929.html