当JSONValue无法读取json iphone时,我的应用程序崩溃了吗?
这里我得到了什么
Response [{"profile_pic":"1.jpg","user_name":"Jack"}]
2011-02-17 13:37:38.209 App[3964:207] -JSONValue failed. Error trace is: (
"Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Object key string expected\" UserInfo=0x6057070 {NSLocalizedDescription=Object key string expected}",
"Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Expected value while parsing array\" UserInfo=0x6057120 {NSUnderlyingError=0x60570d0 \"Object key string expected\", NSLocalizedDescription=Expected value while parsing array}"
)
答案 0 :(得分:0)
NSLog(@"%@", [@"[{\"profile_pic\":\"1.jpg\",\"user_name\":\"Jack\"}]" JSONValue]);
[会议开始于2011-02-17 14:38:48 +0500。]
2011-02-17 14:38:49.970 iJSON [3349:207]
(
{
"profile_pic" = "1.jpg";
"user_name" = Jack;
}
)