如何从 JSONValue 解析 NSDictionary 数据
我有一个 NSDictionary,由 twitter 的每日趋势组成(由 JSON 组成)。然而有一个问题挡住了我的路。在获取任何数据之前,我需要首先获取名为@“trends”的第一个键。这很好并且工作完美。然而,为了真正了解趋势本身,我需要了解一些日期。我想知道的是如何在不知道日期的情况下获取趋势数据。
目前 NSDictionary 的层次结构是:
Dictionary ->关键:@“趋势”->很多键被命名为日期,即:2011-04-30 02:32:34(这是我被困的地方)->趋势数据(我需要得到的)。
I have a NSDictionary made up of the daily trend from twitter (made up of JSON). However there is a problem blocking my way. Before I can get to any data, I need to firstly get through the first key named @"trends". That is fine and works perfectly. However to actually get to the trend itself, I need to get through a few dates. What I would like to know is how can I get the trend data without knowing the dates.
At the moment the hierachy of the NSDictionary is:
Dictionary -> key:@"trends" -> Lots of keys named as dates, i.e: 2011-04-30 02:32:34 (this is where I am stuck) -> trend data (what I need to get).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)