ios - Swift JSON 映射到对应的model对象,有什么好的框架或实践
ringa_lee
ringa_lee 2017-04-18 09:04:31
0
4
270

如题,希望能够有轻量级的将JSON 映射到 Model对象。

OC有mantle不错。
我之前是直接继承NSObject,通过setValuesWithDictionary来做的映射。但这种方法比较累赘,而且希望能够实体对象也没必要继承NSObject。

ringa_lee
ringa_lee

ringa_lee

reply all (4)
PHPzhong

ObjectMapper

ALamoObjectmapper

    刘奇

    YYModel

      巴扎黑

      YYModel +1。

        左手右手慢动作

        Alibaba open source project: HandyJSON https://github.com/alibaba/Ha...

        It can serialize and deserialize pure Swift without overloading the assignment function.

          Latest Downloads
          More>
          Web Effects
          Website Source Code
          Website Materials
          Front End Template
          About us Disclaimer Sitemap
          php.cn:Public welfare online PHP training,Help PHP learners grow quickly!