Ios6 无法映射状态消息
我把这个JSON卷起来了。但在RestKit post回复中,我刚刚得到:Ios6 无法映射状态消息,ios6,restkit-0.20,Ios6,Restkit 0.20,我把这个JSON卷起来了。但在RestKit post回复中,我刚刚得到: { "data": { "email":"test@gmail.com", "last_login_ip":"122.164.168.52", "time_zone":"Eastern Time (US \u0026 Canada)", "authentication_token":"260234dd0bf18d42310ffyddgl01050", "last
{
"data":
{
"email":"test@gmail.com",
"last_login_ip":"122.164.168.52",
"time_zone":"Eastern Time (US \u0026 Canada)",
"authentication_token":"260234dd0bf18d42310ffyddgl01050",
"last_login_at":"2013/07/17 06:20:35 +0000",
"id":11986
},
"status":"success"
}
然后RestKit抛出错误:无法添加状态,未找到可映射的密钥路径。
如何解决此问题?请求(标题)有什么不同?您如何获取RestKit响应的日志?您需要找出JSON开头的片段来自何处。Wain,在curl中,我们没有将其称为post对象。但在restkit中,我们将其称为同一api的post对象。这些方法之间有什么区别吗?所以在curl中你做了一个GET,在RestKit中你做了POST?任何差异都是由服务器根据其接收内容和处理方式决定的。谢谢Wain。谢谢您的解决方案。非常感谢。
response.body = {
"time_zone":"Eastern Time (US \u0026 Canada)",
"email":"test@gmail.com",
"last_login_ip":"122.178.0.166",
"id":11986,"last_login_at":"2013/07/18 06:25:48 +0000",
"authentication_token":"260234dd0bf18d42310ffyddgl01050"
}