The YAJL framework is an Objective-C framework for the YAJL SAX-style JSON parser.
- Stream parsing, comments in JSON, better error messages.
- Parse directly from NSString or NSData.
- Generate JSON from default or custom types.
- Properly handles large numeric types.
- Document style parser.
- Error by exception or out error.
- The online API documentation.
- Copy
YAJL.frameworkto your project directory (maybe in MyProject/Frameworks/.) - Add the
YAJL.frameworkfiles (from MyProject/Frameworks/) to your target. - In Build Settings, add
@loader_path/../FrameworkstoRunpath Search Paths. If you don't seeRunpath Search Pathsmake sureAllis selected instead of 'Basic'. - In Build Phases, select
Add Build Phase, thenAdd Copy Files.- Change the Destination to
Frameworks. - Drag
YAJL.frameworkinto the the build phase - Make sure the copy phase appears before any
Run Scriptphases
- Change the Destination to
- Import with
#import <YAJL/YAJL.h>. - See the API documentation
- Copy
YAJL.frameworkto your project directory (maybe in MyProject/Frameworks/.) - Add the
YAJL.frameworkfiles (from MyProject/Frameworks/) to your target. It should be visible as aLinked Frameworkin the target. - Under Build Settings, add
@loader_path/../FrameworkstoRunpath Search Paths - Add
New Build Phase|New Copy Files Build Phase.- Change the Destination to
Frameworks. - Drag
YAJL.frameworkinto the the build phase - Make sure the copy phase appears before any
Run Scriptphases
- Change the Destination to
- Add
YAJLiOS.frameworkto your project. - In
Build Phases, make sure its listed inLink Binary With Libraries, along with:CoreGraphics.frameworkFoundation.frameworkUIKit.framework
- In
Build Settings:- Under
Framework Search Pathsmake sure the (parent) directory toYAJLiOS.frameworkis listed. - Under
Other Linker Flagsin your target, add-ObjCand-all_load
- Under
- Import with
#import <YAJLiOS/YAJL.h>. - See the API documentation
- Add
YAJLiOS.frameworkto your project. - Add the frameworks to
Linked Libraries:YAJLiOS.frameworkCoreGraphics.frameworkFoundation.frameworkUIKit.framework
- Under
Framework Search Pathsmake sure the (parent) directory toYAJLiOS.frameworkis listed. - Under
Other Linker Flagsin your target, add-ObjCand-all_load - Import with
#import "YAJLiOS/YAJL.h".
Download and copy the YAJL.docset to ~/Library/Developer/Shared/Documentation/DocSets/YAJL.docset
(You may need to restart Xcode after copying the file.)
The documentation will appear within Xcode: