我必须与 API 交互,并且响应格式(从我读过的内容来看)似乎结构很差。我发现 google groups 回复了一个有点类似的问题here,但我在实现 Response 类来处理 Gson.fromJson 时遇到了麻烦。有没有我错过的例子?
{
"response":{
"reference": 1023,
"data":{
"user":{
"id":"210",
"firstName":"john",
"lastName":"smith",
"email":"pocahontas@gmail.com",
"phone":"",
"linkedid":{
"id":"238"
}
}
}
}
}