Skip to content

greedlab/GreedJSON

Repository files navigation

GreedJSON Build Status

parse and format JSON for ios, based on NSJSONSerialization and run time

中文版

Installation

pod 'GreedJSON'

Usage

#import "GreedJSON.h"
// NSArray to NSString
- (NSString*)gr_JSONString;
// NSArray to NSData
- (NSData*)gr_JSONData;
// NSData to NSDictionary or NSArray
- (__kindof NSObject*)gr_object
// NSDictionary to NSString
- (NSString*)gr_JSONString;
// NSDictionary to NSData
- (NSData*)gr_JSONData;
// NSString to NSDictionary or NSArray
- (__kindof NSObject*)gr_object
// model to NSDictionary
- (__kindof NSObject *)gr_dictionary;
// NSDictionary to model
+ (id)gr_objectFromDictionary:(NSDictionary*)dictionary

LICENSE

MIT