mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 12:27:52 +08:00
RKJSONParserSBJSON serializes itself instead of the object
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user