Skip to content

Easy way to automate the mapping of NSObjects to NSDictionary and the other way around. Great for JSON handling

License

Notifications You must be signed in to change notification settings

kevinejohn/NSObject-KJSerializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSObject-KJSerializer

Easy way to automate the mapping of NSObjects to NSDictionary and back again. Great for JSON handling

Tested and works with: NSString NSNumber UIImage NSData

How to use it:

#import "NSObject+KJSerializer.h"
#import "YourObject.h"

// NSObject to NSDictionary
NSDictionary * dictionary = [YourObject getDictionary];

// Convert to JSON or whatever
...
// Receive JSON and convert to NSDictionary

// NSDictionary to NSObject
[YourObject setDictionary:dictionary];

About

Easy way to automate the mapping of NSObjects to NSDictionary and the other way around. Great for JSON handling

Resources

License

Stars

Watchers

Forks

Packages

No packages published