How to serialize a class in IOS sdk (Objective-c)?

前端 未结 7 1657
既然无缘
既然无缘 2021-01-03 01:21

How to serialize the following class in objective-c so that it can be used with SBJson?

I get \"JSON serialisation not supported for Animal\" error when I use this c

7条回答
  •  滥情空心
    2021-01-03 01:54

    Check the newly introduced NSJSONSerialization class:

    NSJSONSerialization class

提交回复
热议问题