Welcome to the documentation page for SBJson, a JSON parser and generator for Objective-C.
Installation
Cocoapods
To install SBJson using Cocoapods, add the following line to your Podfile:
pod 'SBJson'
Then, run the following command:
pod install
Manual
If you prefer to install SBJson manually:
- Download the latest version of SBJson from the GitHub repository.
- Add the SBJson files to your Xcode project.
Usage
Importing
To use SBJson in your project, you need to import the SBJson header file:
#import "SBJson.h"
Parsing JSON
To parse JSON data, use the following code:
- (id)objectWithString:(NSString *)jsonString error:(NSError **)error
This method returns an `NSObject` representing the parsed JSON data.
Generating JSON
To generate JSON string from an `NSArray` or `NSDictionary` object, use the following code:
- (NSString *)stringWithObject:(id)value
This method returns a string containing the generated JSON representation.
Documentation
For more detailed information on using SBJson, check out the official GitHub repository.
Support
If you have any questions or issues, feel free to post them on the SBJson GitHub Issues page.
License
SBJson is available under the MIT license.