mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-02 06:24:54 +08:00
add support for jsonkit parser
This commit is contained in:
22
Code/Support/Parsers/JSON/RKJSONParser+JSONKit.m
Normal file
22
Code/Support/Parsers/JSON/RKJSONParser+JSONKit.m
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// RKJSONParser+JSONKit.m
|
||||
// RestKit
|
||||
//
|
||||
// Created by Jeff Arena on 3/16/10.
|
||||
// Copyright 2010 Two Toasters. All rights reserved.
|
||||
//
|
||||
|
||||
#import "RKJSONParser.h"
|
||||
#import "JSONKit.h"
|
||||
|
||||
@implementation RKJSONParser
|
||||
|
||||
- (NSDictionary*)objectFromString:(NSString*)string {
|
||||
return [string objectFromJSONString];
|
||||
}
|
||||
|
||||
- (NSString*)stringFromObject:(id)object {
|
||||
return [object JSONString];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user