gson怎么解析json里面對(duì)象的數(shù)組?
首先要導(dǎo)入Gson包;
例如有個(gè)penson類:
Gson gson = new Gson();
String json ;
person[] pers = gson. fromJson (json , person[].class);
gson怎么解析json里面對(duì)象的數(shù)組?
首先要導(dǎo)入Gson包;
例如有個(gè)penson類:
Gson gson = new Gson();
String json ;
person[] pers = gson. fromJson (json , person[].class);