GreedJSON 0.1.6

GreedJSON 0.1.6

测试已测试
语言 Obj-CObjective C
许可证 MIT
发布最后发布2016年7月

Bell 维护。



GreedJSON 0.1.6

  • Bell

基于 NSJSONSerialization 和运行时为 ios 解析和格式化 JSON

中文版

安装

pod 'GreedJSON'

用法

#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

许可证

MIT