some time ago, I figured out JSON handling in Objective-C (iPhone), and I found one confusing thing there.
This challenge puzzles me:
NSString* jsonString = [jsonDict JSONRepresentation];
In fact, jsonDict
is an instance of the NSDictionary
class and according to the NSDictionary class reference NSDictionary does not have this JSONRepresentation
method. I feel cheated somewhere, I know that it works, but cannot figure out how.
Can anyone explain?
thanks
source share