如何在iphone中进行json解析 [英] how to do json parsing in iphone

查看:140
本文介绍了如何在iphone中进行json解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序
中使用json解析,这是我的json数据如下:

i am using json parsing in my application and this is my json data is as follow :

{response:
{ 成功:错误,错误:
{代码:7,说明:您尚未登录}}}

{"response" : {"success":false,"error": {"code":7,"description":"You are not logged in"}}}

我希望描述意味着你没有登录我的字符串
所以我怎么能这样做
请帮助我.....

and i want description means "You are not logged in" i my string so how can i do that please help me.....

推荐答案

使用示例代码检查博客文章并逐步解析JSON。

Check the blog post with sample code and step by step parsing of JSON.

http:// www.xprogress.com/post-44-how-to-parse-json-files-on-iphone-in-objective-c-into-nsarray-and-nsdictionary/

http:// pessoal .org / blog / 2008/12/12 / iphone-sdk-parsing-json-data /

http://mobileorchard.com/tutorial-json-over-http-on-the-iphone/

这篇关于如何在iphone中进行json解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆