which JSON framework with ios SDK?

Go To StackoverFlow.com

0

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 ?

2012-04-05 01:55
by user583726
This question is pretty subjective...I would suggest asking it in a more objective way like "What are the pros and cons of X library for Y situation" - borrrden 2012-04-05 01:57
Is there some reason you don't want to use the built-in NSJSONSerialization - Lily Ballard 2012-04-05 02:08
Kevin Ballard : Just newbie and trying different things thanks for the suggestion - user583726 2012-06-18 21:30


1

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.

2012-04-05 02:21
by wingnet
thanks I will try it - user583726 2012-04-10 04:53
I tried it and its good - user583726 2012-06-21 05:16


1

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

2012-04-05 02:12
by MaKo
Thanks @MaKo. I will try it - user583726 2012-04-10 04:54
@user583726 no worries man, if was of use to you please upvote ; - MaKo 2012-04-10 05:04
yes. I will. np - user583726 2012-04-10 16:47
Thank you. That is a much better approach than adding another framework - zirinisp 2012-11-21 14:00
Ads