Renaming parseOptions property to JSONReadingOptions
Updating documentation for JSONReadingOptions property
This commit is contained in:
parent
5d37e534f7
commit
1826cffd81
2 changed files with 4 additions and 3 deletions
|
|
@ -47,9 +47,9 @@
|
||||||
@property (readonly, nonatomic, strong) id responseJSON;
|
@property (readonly, nonatomic, strong) id responseJSON;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
A bitmask of options that will be used by the NSJSONSerialization class that parses the JSON data from the response.
|
Options for reading the response JSON data and creating the Foundation objects. For possible values, see the `NSJSONSerialization` documentation section "NSJSONReadingOptions".
|
||||||
*/
|
*/
|
||||||
@property (readwrite) NSJSONReadingOptions parseOptions;
|
@property (nonatomic, assign) NSJSONReadingOptions JSONReadingOptions;
|
||||||
|
|
||||||
///----------------------------------
|
///----------------------------------
|
||||||
/// @name Creating Request Operations
|
/// @name Creating Request Operations
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ static dispatch_queue_t json_request_operation_processing_queue() {
|
||||||
|
|
||||||
@implementation AFJSONRequestOperation
|
@implementation AFJSONRequestOperation
|
||||||
@synthesize responseJSON = _responseJSON;
|
@synthesize responseJSON = _responseJSON;
|
||||||
|
@synthesize JSONReadingOptions = _JSONReadingOptions;
|
||||||
@synthesize JSONError = _JSONError;
|
@synthesize JSONError = _JSONError;
|
||||||
|
|
||||||
+ (AFJSONRequestOperation *)JSONRequestOperationWithRequest:(NSURLRequest *)urlRequest
|
+ (AFJSONRequestOperation *)JSONRequestOperationWithRequest:(NSURLRequest *)urlRequest
|
||||||
|
|
@ -66,7 +67,7 @@ static dispatch_queue_t json_request_operation_processing_queue() {
|
||||||
if ([self.responseData length] == 0) {
|
if ([self.responseData length] == 0) {
|
||||||
self.responseJSON = nil;
|
self.responseJSON = nil;
|
||||||
} else {
|
} else {
|
||||||
self.responseJSON = [NSJSONSerialization JSONObjectWithData:self.responseData options:self.parseOptions error:&error];
|
self.responseJSON = [NSJSONSerialization JSONObjectWithData:self.responseData options:self.JSONReadingOptions error:&error];
|
||||||
}
|
}
|
||||||
|
|
||||||
self.JSONError = error;
|
self.JSONError = error;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue