Type type = new TypeToken<List<String>>().getType();
List<String> list = gson.fromJson(s, type);
TypeReference<List<String>> typeRef = new TypeReference<List<String>>(){};
List<String> list2 = JSON.parseObject(s, typeRef);
fastJson gson
最新推荐文章于 2024-07-25 13:40:37 发布