gson list 反序列化
自己记录一下
Gson g = new Gson(); String[] sss= {"1","22","sss"}; String jsonString = g.toJson(sss); List<String> groups = g.fromJson(jsonString, new TypeToken<List<String>>() {}.getType());
相关推荐
ITprivate 2020-03-26
SXIAOYI 2020-09-16
xiaonuoyal 2020-06-17
SXIAOYI 2020-06-11
yinbaoshiguang 2020-06-09
Chydar 2020-06-02
nalanrumeng 2020-06-01
xiaonuoyal 2020-06-01
nalanrumeng 2020-05-19
ITprivate 2020-04-15
xiaonuoyal 2020-04-14
ITprivate 2020-02-12
nalanrumeng 2020-01-13
xiaonuoyal 2019-12-07
xiaonuoyal 2019-11-18
TOmyhonour 2019-11-16