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-05-06 18:26:10 发布