// // NSMutableDictionary+Json.h // CommonLibrary // // Created by Alexi on 14-1-16. // Copyright (c) 2014年 CommonLibrary. All rights reserved. // #import @interface NSMutableDictionary (Json) - (void)addString:(NSString *)aValue forKey:(id)aKey; - (void)addInteger:(NSInteger)aValue forKey:(id)aKey; - (void)addCGFloat:(CGFloat)aValue forKey:(id)aKey; - (void)addBOOL:(BOOL)aValue forKey:(id)aKey; - (void)addBOOLStr:(BOOL)aValue forKey:(id)aKey; - (void)addNumber:(NSNumber *)aValue forKey:(id)aKey; - (void)addArray:(NSArray *)aValue forKey:(id)aKey; - (NSString *)convertToJSONString; //- (id)jsonObjectForKey:(id)key; @end @interface NSDictionary (Json) //- (id)jsonObjectForKey:(id)key; - (NSMutableDictionary *)dictionaryForKey:(id)key; - (NSString *)stringForKey:(id)key; - (NSInteger)integerForKey:(id)key; - (BOOL)boolForKey:(id)key; - (CGFloat)floatForKey:(id)key; - (double)doubleForKey:(id)key; - (NSMutableArray *)arrayForKey:(id)key; @end