com.alibaba.fastjson.JSONException: illegal identifier : \pos 1, json : {
com.alibaba.fastjson.JSONException: illegal identifier : \pos 1, json : {
·
遇到报错
com.alibaba.fastjson.JSONException: illegal identifier : \pos 1, json : {\"02_2022-07-11\":\"1524688836977201090,1524688836977201083,1524688836977201084\",\"03_2022-07-01\":\"1524688836977201090,1524688836977201083,1524688836977201084\"}
原因 字符串被转义了 吧转义的斜线干掉就好
Map<String,String> amap = JSONObject.parseObject(message.replaceAll("\\\\",""),Map.class);
更多推荐




所有评论(0)