开发者

How to parse JSON String?

In my app, I have send some Request to server using POST Method and in response following JSON string printed on console :

[
    {
         "title": "American Heart Association",
         "link": "www.americanheart.org/"
    },
    {
        "title": "EverydayHealth.com",
        "link": "www.everydayhealth.com"
    },
    {
        "title": "GetFitSlowly.co开发者_运维知识库m",
        "link": "www.getfitslowly.com"
    }
]

so, how to parse it, and take title and link from this string


Yes as Jhaliya posted above...

Tutorial: JSON Over HTTP On The iPhone download from code here copy JSON library in your code and simple

object = [yourResponseInString JSONValue];

in object you'll get Array or dictionary..;)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜