最简单的办法做一个replace
JSONObject res = new JSONObject();
res.put(key, val);
return res.toString().replaceAll("\\\\","");
这样输出的字符串就不再携带转义符
最简单的办法做一个replace
JSONObject res = new JSONObject();
res.put(key, val);
return res.toString().replaceAll("\\\\","");
这样输出的字符串就不再携带转义符