Gson gson=new Gosn();
String json = gson.toJson(list);
List<Person> fromJson = gson.fromJson(json,
new TypeToken<List<Person>>(){}.getType());
Json数据的解析-Gson
最新推荐文章于 2024-04-19 11:21:58 发布
Gson gson=new Gosn();
String json = gson.toJson(list);
List<Person> fromJson = gson.fromJson(json,
new TypeToken<List<Person>>(){}.getType());