json字符串转javabean对象

bean对象:CertReturn
string字符串:info

1
2
Gson gson = new Gson();
CertReturn certReturn = gson.fromJson(info, new TypeToken<CertReturn>() {}.getType());
ˆ Back To Top