William Falcon
William Falcon

Reputation: 9813

SBJSON ios 5 or native apple JSON

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

Answers (3)

DrMickeyLauer
DrMickeyLauer

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

Stavash
Stavash

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

Anurag Kapur
Anurag Kapur

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

Related Questions