mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-30 21:52:30 +08:00
Refactor JSONRepresentation to stringFromObject: on RKParser. Fixes https://github.com/twotoasters/RestKit/issues/#issue/6
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#import "RKJSONParser.h"
|
||||
#import "SBJsonParser.h"
|
||||
#import "NSObject+SBJSON.h"
|
||||
|
||||
@implementation RKJSONParser
|
||||
|
||||
@@ -23,4 +24,8 @@
|
||||
return result;
|
||||
}
|
||||
|
||||
- (NSString*)stringFromObject:(id)object {
|
||||
return [object JSONRepresentation];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user