GreedJSON 0.1.6

GreedJSON 0.1.6

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jul 2016

Maintained by Bell.



GreedJSON 0.1.6

  • By
  • Bell

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

中文版

Installation

pod 'GreedJSON'

Usage

#import "GreedJSON.h"

NSArray+GreedJSON

// NSArray to NSString
- (NSString*)gr_JSONString;
// NSArray to NSData
- (NSData*)gr_JSONData;

NSData+GreedJSON

// NSData to NSDictionary or NSArray
- (__kindof NSObject*)gr_object

NSDictionary+GreedJSON

// NSDictionary to NSString
- (NSString*)gr_JSONString;
// NSDictionary to NSData
- (NSData*)gr_JSONData;

NSString+GreedJSON

// NSString to NSDictionary or NSArray
- (__kindof NSObject*)gr_object

NSObject+GreedJSON

// model to NSDictionary
- (__kindof NSObject *)gr_dictionary;
// NSDictionary to model
+ (id)gr_objectFromDictionary:(NSDictionary*)dictionary

LICENSE

MIT