Object Mapping library from JSON to NSObjects

前端 未结 5 2003
别那么骄傲
别那么骄傲 2021-02-04 08:39

I am trying to build a parser/objectMapper that will build Objective C objects for the JSON I consume from a REST service.

I took some inspiration from RestKit by having

5条回答
  •  耶瑟儿~
    2021-02-04 09:10

    My recommendation is to use the Motis category on NSObject. It is light-weight, performs automatic validation to your object types and very simple to use.

    There is an exapmle in this other question: Mapping JSON objects in custom objects

    Hope it is useful.

提交回复
热议问题