iPhone json library to map the json to my own objects
I seek a iPhone json library that parse json strings into Cu开发者_如何学运维stom Objects (such as Employee, Course, etc, not into NSDictionary or NSArray)
Thanks.
I don't think one exists. How would you design a general one, without knowing in advance about the kinds of objects that you'll need to parse into? And more critically, JSON is only designed to encode basic data types; it is not intended to be a full object serialization framework (those are usually language specific or have language-specific bindings). However, it should be very easy to write a converter to your custom objects.
精彩评论