String s = "["a","sd"]";
s = t.getChartData().replaceAll("\\\"", "");
List<String> list = Arrays.asList(s.replaceAll("[\\[\\]]", "").split(","));
先去除双引号 ,在去除中括号 ,最后变成list 有更简便的 欢迎评论
JSONArray objects = JSON.parseArray(s);
JSONObject.parseArray(objects.toJSONString(), String.class);