Object mapping in objective-c (iphone) from JSON
Take a look at the NSKeyValueCoding
protocol. In particular, the methods setValuesForKeysWithDictionary
: and dictionaryWithValuesForKeys:
I've made a framework to do this automatically. Check out.
https://github.com/dchohfi/KeyValueObjectMapping