Im trying to use the built in JSON framework in iOS5, but i get an ARC issue when trying to compile this code:
NSDictionary *results = [jsonString JSONValue];
Is there an equivalent way to do this in iOS5, that doesn’t raise an ARC issue?
ARC issue is: No visible @interface for ‘NSString’ declares the selector ‘JSONValue’
The message you get means ‘There is no method
JSONValuedeclared inNSString‘ (which is absolutely true). In order to use the built in JSON serializer try this one:Ps For options see the documentation on NSJSONSerialization class. Also note that results can be an
NSArrayas well.