开发者

Application crash when JSONValue unable to read json iphone

My Application crash when JSONValue unable to read json iphone?

here what i m getting

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.JS开发者_运维知识库ON.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}"
)


hey i tried with your input and got through

NSLog(@"%@", [@"[{\"profile_pic\":\"1.jpg\",\"user_name\":\"Jack\"}]" JSONValue]);

[Session started at 2011-02-17 14:38:48 +0500.]

2011-02-17 14:38:49.970 iJSON[3349:207]

(
        {
        "profile_pic" = "1.jpg";
        "user_name" = Jack;
    }
)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜