Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Let NSJSON parse top-level objects. #374

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion AFNetworking/AFJSONUtilities.m
Expand Up @@ -200,7 +200,7 @@ id AFJSONDecode(NSData *data, NSError **error) {
invocation.selector = _NSJSONSerializationSelector;

[invocation setArgument:&data atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation
NSUInteger readOptions = 0;
NSUInteger readOptions = NSJSONReadingAllowFragments;
[invocation setArgument:&readOptions atIndex:3];
if (error != NULL) {
[invocation setArgument:&error atIndex:4];
Expand Down