diff --git a/Classes/YAJL.h b/Classes/YAJL.h index 5334863..1858375 100644 --- a/Classes/YAJL.h +++ b/Classes/YAJL.h @@ -73,7 +73,7 @@ NSArray *arrayFromString = [JSONString yajl_JSON]; @endcode - @subsection Example2 To parse JSON from NSString with error and comments + @subsection Example2_1 To parse JSON from NSString with error and comments @code // With options and out error @@ -87,6 +87,7 @@ @code NSDictionary *dict = [NSDictionary dictionaryWithObject:@"value" forKey:@"key"]; NSString *JSONString = [dict yajl_JSONString]; + // ==> {"key":"value"} @endcode @subsection Example4 To generate JSON from an object, beautified with custom indent diff --git a/README.md b/README.md index 8bb0af2..8b6af7e 100644 --- a/README.md +++ b/README.md @@ -15,23 +15,6 @@ The YAJL framework is an Objective-C framework for the [YAJL](http://lloyd.githu - The online [API documentation](http://gabriel.github.com/yajl-objc/). -## Apps - -YAJL framework is used by: - -- [Yelp for iPhone/iPad](http://itunes.apple.com/us/app/yelp/id284910350?mt=8) -- Add your app here! - -## Docset - -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: - -![YAJL-Docset](http://rel.me.s3.amazonaws.com/yajl/images/docset.png) - ## Install (Mac OS X) ### Installing in your project (Recommended) @@ -61,6 +44,22 @@ The documentation will appear within XCode: - Under `Framework Search Paths` make sure the (parent) directory to `YAJLiOS.framework` is listed. - Under `Other Linker Flags` in your target, add `-ObjC` and `-all_load` +## Apps + +YAJL framework is used by: + +- [Yelp for iPhone/iPad](http://itunes.apple.com/us/app/yelp/id284910350?mt=8) +- Add your app here! + +## Docset + +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: + +![YAJL-Docset](http://rel.me.s3.amazonaws.com/yajl/images/docset.png)