去掉JSON字符串中的转义字符
import org.apache.commons.lang.StringEscapeUtils;
public class RemoveTest {
public static void main(String[] args) {
String str = "{\\\"name\\\": \\\"tom\\\", \\\"age\\\": 18}";
// {\"name\": \"tom\", \"age\": 18}
System.out.p
原创
2021-05-13 12:30:09 ·
1850 阅读 ·
0 评论