How to handle JSON response using SBJSON iPhone?

Posted by Jay Mehta on Stack Overflow See other posts from Stack Overflow or by Jay Mehta
Published on 2011-02-25T14:58:56Z Indexed on 2011/02/25 15:25 UTC
Read the original article Hit count: 387

Filed under:
|
|

I am receiving the below response from my web service? Can any one has idea how to handle it using SBJSON?

{
"match_details" : 
    {
        "score" : 86-1
        "over" : 1.1
        "runrate" : 73.71
        "team_name" : England
        "short_name" : ENG
        "extra_run" : 50
    }

"players" : 
    {
        "key_0" : 
            {
                "is_out" : 2
                "runs" : 4
                "balls" : 2
                "four" : 1
                "six" : 0
                "batsman_name" : Ajmal Shahzad *
                "wicket_info" : not out
            }

        "key_1" : 
            {
                "is_out" : 1
                "runs" : 12
                "balls" : 6
                "four" : 2
                "six" : 0
                "batsman_name" : Andrew Strauss
                "wicket_info" : c. Kevin b.Kevin
            }

        "key_2" : 
            {
                "is_out" : 2
                "runs" : 20
                "balls" : 7
                "four" : 4
                "six" : 0
                "batsman_name" : Chris Tremlett *
                "wicket_info" : not out
            }

      }

"fow" : 
    {
        "0" : 40-1
    }

}

I have done something like this:

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode