java正则表达式去除json值的双引号
String json = "{"name":"value"}";
String t = json.replaceAll(""(\\w+)"(\\s*:\\s*)", "$1$2");
System.out.println(t);
String json = "{"name":"value"}";
String t = json.replaceAll("(:\\s*)"(\\w+?)"", "$1$2");
System.out.println(t);
String json = "{"name":"value"}";
String t = json.replaceAll(""(\\w+)"", "$1");
System.out.println(t);