Adding native JSON serialization macro check for Mac
This commit is contained in:
parent
4c7816e716
commit
72090fd4e2
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ static dispatch_queue_t json_request_operation_processing_queue() {
|
|||
if (!_responseJSON && [self isFinished]) {
|
||||
NSError *error = nil;
|
||||
|
||||
#if __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_4_3
|
||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED > __MAC_10_6 || __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_4_3
|
||||
if ([NSJSONSerialization class]) {
|
||||
self.responseJSON = [NSJSONSerialization JSONObjectWithData:self.responseData options:0 error:&error];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue