String json = "";
json = json.replaceAll("\"(\\w+)\"(\\s*:\\s*)", "$1$2");
System.out.println(json);
去除json中key的双引号
最新推荐文章于 2023-05-25 17:43:59 发布
String json = "";
json = json.replaceAll("\"(\\w+)\"(\\s*:\\s*)", "$1$2");
System.out.println(json);