Tell me more ×  I'm using a new API class, NSJSONSerialization,
especially the following method :  +
(id)JSONObjectWithData:(NSData *)data
options:(NSJSONReadingOptions)opt error:(NSError **)error  I'd
like to stick as much as I can to the tools Apple is giving us,
but this class is only available on iOS 5.  Is there a way to
re-implement the class and its method for iOS 4 so it can call
an external JSON framework (JSONKit) by using the exact same
call methods ?  id result = [NSJSONSerialization
JSONObjectWithData:myData options:0 error:nil];  If I create a
class with the same name (NSJSONSerialization) it will not
compile (duplicate interface).  I can't create a category
either, because it will simply ignore any NSJSONSerialization
related calls due to its unavailability on iOS 4.  Any help ?
share|improve this question Then why not use JSONKit anyway? – 
user142019 Nov 10 '11 at 17:16 Because like I said, i'd like to
stick as much as I can to the tools provided by Apple. But yeah,
I guess it would be simpl