Permalink
Browse files

Merge pull request #79 from mattbond/master

Incorrect flag passed
  • Loading branch information...
snej committed Oct 13, 2014
2 parents ae4dd5a + 01d2a39 commit ba0f8b68a44528777e31c66999d71fcdabdd6327
Showing with 2 additions and 2 deletions.
  1. +2 −2 REST/RESTBody.m
View
@@ -267,7 +267,7 @@ + (NSData*) dataWithJSONObject: (id)obj {
return [obj JSONData];
#endif
return [sJSONSerialization dataWithJSONObject: obj
- options: NSJSONReadingAllowFragments
+ options: 0
error: NULL];
}
@@ -277,7 +277,7 @@ + (NSString*) stringWithJSONObject: (id)obj {
return [obj JSONString];
#endif
NSData* data = [sJSONSerialization dataWithJSONObject: obj
- options: NSJSONReadingAllowFragments
+ options: 0
error: NULL];
if (!data)
return nil;

0 comments on commit ba0f8b6

Please sign in to comment.