Senthil Raja Ramasamy
Senthil Raja Ramasamy

Reputation: 111

Difference between JSON and SBJSON?

Thanks

Upvotes: 6

Views: 6606

Answers (3)

Tanim_113
Tanim_113

Reputation: 379

SBJson is a data interchange formatter that's easy to read and write.It's one kind of JSON. This framework is supported by IOS.

Where as JSON means JavaScript Object Notation.It is syntax for storing and exchanging information or data.

Upvotes: -1

Dima
Dima

Reputation: 23624

JSON and SBJSON cannot be compared because one is a standard/protocol, and the other is a language-specific implementation made to use that standard.

JSON stands for Javascript Object Notation. It is just a standard for transmitting data (similar to XML, but more lightweight). Also see this answer for some more info.

SBJSON is one of the many open-source json parsers/generators created with Objective-C. Some other ones are touchJSON and JSONKit. These allow you to use JSON easily when coding Objective-C apps.

As of iOS 5, there is a built in class called NSJSONSerialization to do this for you. If you want to support any iOS version prior to iOS 5, you will need to use something like one of the previously mentioned frameworks.

In any environment, you would typically use JSON for transmitting/receiving data from a remote source, such as a RESTFUL web service.

Upvotes: 13

najk
najk

Reputation: 123

SBJson is a json framework for ios/iphone.

Upvotes: 1

Related Questions