【发布时间】:2015-05-14 04:45:24
【问题描述】:
以下是我从服务器获得的示例响应。
"request": {
"authenticate-login": {
"response": {
"status": 1,
"msg": "User Authorized!"
}
}
}
我使用 Retrofit 已经有一段时间了,这是我第一次遇到这样的问题。
【问题讨论】:
-
如果它是来自服务器的确切响应,那么它不是正确的 JSON 响应
-
JSON 应该是这样的 : { "request": { "authenticate-login": { "response": { "status": 1, "msg": "UserAuthorized!" } } } }
标签: android parsing formatting retrofit