Skip to content
Browse files

Merge pull request #252 from rehos/patch-2

RKJSONParserSBJSON serializes itself instead of the object
  • Loading branch information...
2 parents d22ae1c + d46dcef commit d7c87be60ee92d2d160a01783ea50367eec61703 @blakewatters blakewatters committed Jul 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Code/Support/Parsers/JSON/RKJSONParserSBJSON.m
View
2 Code/Support/Parsers/JSON/RKJSONParserSBJSON.m
@@ -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];
}

0 comments on commit d7c87be

Please sign in to comment.
Something went wrong with that request. Please try again.