开发者

iPhone json library to map the json to my own objects

开发者 https://www.devze.com 2023-04-08 02:33 出处:网络
I seek a iPhone json library that parse json strings into Cu开发者_如何学运维stom Objects (such as Employee, Course, etc, not into NSDictionary or NSArray)

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消