Skip to content

Commit

Permalink
Merge pull request RestKit#252 from rehos/patch-2
Browse files Browse the repository at this point in the history
RKJSONParserSBJSON serializes itself instead of the object
  • Loading branch information
blakewatters committed Jul 28, 2011
2 parents d22ae1c + d46dcef commit d7c87be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Support/Parsers/JSON/RKJSONParserSBJSON.m
Expand Up @@ -25,7 +25,7 @@ - (NSDictionary*)objectFromString:(NSString*)string error:(NSError **)error {

- (NSString*)stringFromObject:(id)object error:(NSError **)error {
SBJsonWriter *jsonWriter = [SBJsonWriter new];
NSString *json = [jsonWriter stringWithObject:self];
NSString *json = [jsonWriter stringWithObject:object];
if (!json) {
if (error) *error = [[jsonWriter errorTrace] lastObject];
}
Expand Down

0 comments on commit d7c87be

Please sign in to comment.