user583726
user583726

Reputation: 685

which JSON framework with ios SDK?

There are couple of JSON frameworks. JSONKit , SBJSON , Native JSON and other. Which one is the best to use for Iphone app OR ios App and why ?

Upvotes: 0

Views: 1727

Answers (2)

wingnet
wingnet

Reputation: 138

I have used SBJson for two years, and many Object-C API use SBJson too. It is quite hard to compare different json apis, however SBJson is easy to use and widely used.

Upvotes: 1

manuelBetancurt
manuelBetancurt

Reputation: 16168

if you want to target just iOS5 and above you could try NSJSONSerialization

Basically iOS 5 has a new class named NSJSONSerialization. It has a static method called JSONObjectWithData:options:error that takes an NSData and gives you back a Foundation object – usually an NSDictionary or an NSArray depending what do you have at the top of your JSON file hierarchy.

an excellent example

from Ray Wenderlich

Upvotes: 1

Related Questions