开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜