//替换json数据中的特殊字符 \
String dataList = dataList.replaceAll("\\\\", "");
//去掉json数据中的双引号
private static String jsonString(String oldJson) {
char[] temp = oldJson.toCharArray();
int n = temp.length;
for (int i = 0; i < n; i++) {
if (temp[i] == ':' && temp[i + 1] == '"') {
for (int j = i + 2; j < n; j++) {
if (temp[j] == '"') {
if (temp[j + 1] != ',' && temp[j + 1] != '}') {
temp[j] = '”';
} else if (temp[j + 1] == ',' || temp[j + 1] == '}') {
break;
}
}
}
}
}
return new String(temp);
}