Reputation: 9813
Just started using JSON in iOS. I have a previous version of an application that uses SBJSON. I am rebuilding it from the ground up, and was wondering if I should continue to use SBJSON or apple's native JSON support?
Thanks
Upvotes: 1
Views: 1103
Reputation: 4674
Note that SBJSON (and my modified version of KSJSON) supports custom object serialization, which not only makes it – of course – slower than NSJSONSerialization, but also might be exactly what you need.
NSJSONSerialization does not support object graphs with custom classes.
Upvotes: 0
Reputation: 14304
The only reason I see for staying with the SBJSON classes is iOS < 5.0 compatibility. If you plan on targeting iOS 5.0 and up, I'd go with the native NSJSONSerialization
. Native is almost always the better option when developing for iOS, in my opinion.
Upvotes: 1
Reputation: 675
Some people have done some research on this and seems like NSJSONSerialization is more performant than SBJSON
http://blog.skulptstudio.com/nsjsonserialization-vs-sbjson-performance
Upvotes: 4