I can't seem to work out how to get a Dictionary representing an object from the dictionary that TouchJSON returns.
For example:
If I use the JSON in the format here:
http://search.twitter.com/search.json?q=hello
How would I get a tweet with the "id" = x without having to pull all of the tweets into an array using a "for" statement?
e.g. without having to do this... since I know the "id" (JSON key, rather than index) of the object I want to access
NSArray *tweetsArray = [resultsDictionary objectForKey:@"results"];
for (NSDictionary *tweetDictionary in tweetsArray) {
NSString *tweetText = [tweetDictionary objectForKey:@"text"];
[tweets addObject:tweetText];
}