Android-Java-反序列化JSON
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
String jsonStr= WebAPIOperator.DoGet("/v2.0/manage/baseInfo/faceList?corpId="+ DataStore.corpId);
if(jsonStr!=""){
ResponseFacesInfo rfi=new Gson().fromJson(jsonStr,new TypeToken<ResponseFacesInfo>() {}.getType());
((TextView)findViewById(R.id.textView_StationList)).setText(jsonStr);
}

浙公网安备 33010602011771号