jsonkit

Does JSONKit support ARC, or is there a fork that supports ARC?

守給你的承諾、 提交于 2019-11-28 17:17:38
According to these comments, JSONKit does not support ARC, and not even running with fobjc-no-arc setting in an ARC environment: https://github.com/johnezang/JSONKit/issues/37 ehanoc You can still use JSONKit in your application with ARC. I'm using it myself. Select your project root in XCode 5, under Targets select your application then select the BuildPhases tab. Under Compile Sources double-click JSONKit.m and add the following compiler flags -fno-objc-arc . Hope it helps Cheers I use JSONKit in ARC project with the -fno-objc-arc in the JSONKit.m file in the compile Source settings. And

Does JSONKit support ARC, or is there a fork that supports ARC?

放肆的年华 提交于 2019-11-27 10:23:22
问题 According to these comments, JSONKit does not support ARC, and not even running with fobjc-no-arc setting in an ARC environment: https://github.com/johnezang/JSONKit/issues/37 回答1: You can still use JSONKit in your application with ARC. I'm using it myself. Select your project root in XCode 5, under Targets select your application then select the BuildPhases tab. Under Compile Sources double-click JSONKit.m and add the following compiler flags -fno-objc-arc . Hope it helps Cheers 回答2: I use

iOS: Serialize/Deserialize complex JSON generically from NSObject class

為{幸葍}努か 提交于 2019-11-26 19:06:50
Anyone have idea how to serialize nested JSON based on NSObject class? There is a discussion to serialize simple JSON here , but it is not generic enough to cater complex nested JSON. Imagine this is the result of JSON: { "accounting" : [{ "firstName" : "John", "lastName" : "Doe", "age" : 23 }, { "firstName" : "Mary", "lastName" : "Smith", "age" : 32 } ], "sales" : [{ "firstName" : "Sally", "lastName" : "Green", "age" : 27 }, { "firstName" : "Jim", "lastName" : "Galley", "age" : 41 } ]} From this class: @interface Person : NSObject{} @property (nonatomic, strong) NSString *firstName; @property