RKJSONParserSBJSON serializes itself instead of the object

This commit is contained in:
rehos
2011-07-27 21:29:37 +03:00
parent afc6167554
commit d46dcef8fe

View File

@@ -25,7 +25,7 @@
- (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];
}