【发布时间】:2012-08-07 21:51:44
【问题描述】:
我想解析超过 500 个 cmets 的 reddit 帖子的 cmets。 比如这个:http://www.reddit.com/comments/xu11o json url为:http://www.reddit.com/comments/xu11o.json
我正在使用 SBJson 来实现这一点。
当我尝试使用此代码获取 NSArray 时:
NSString* response = [request responseString];
NSArray* responseArray = [response JSONValue];
我收到此错误消息:-JSONValue failed. Error is: Input depth exceeds max depth of 32
将深度更改为更高的数字(例如 100)会使我的应用崩溃。
如果 reddit 帖子只有 20 个 cmets,我会得到 NSArray 并可以成功显示它们。
要获得 NSArray,我需要进行哪些更改?
【问题讨论】:
标签: iphone json nsarray sbjson