//自己copy试一下比什么都好
public static void main(String[] args) {
String json = "[\"name\":\"value\",\"value1\"]";
String t = ("\\\"","");
("去除双引号和斜杠后:"+t);
String replaceAll = ("[", "").replace("]","");
("去除左右中括号后:"+replaceAll);
}
//自己copy试一下比什么都好
public static void main(String[] args) {
String json = "[\"name\":\"value\",\"value1\"]";
String t = ("\\\"","");
("去除双引号和斜杠后:"+t);
String replaceAll = ("[", "").replace("]","");
("去除左右中括号后:"+replaceAll);
}