Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirek Rusin authored and Mirek Rusin committed Mar 4, 2011
1 parent 3ffb7d4 commit c9d7b12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Parsing in Objective-C:
Parsing in C:

CFErrorRef error = NULL;
CFTypeRef object = JSONCreateWithString(NULL, CFSTR("[foo, bar]", kJSONReadOptionsDefault, &error);
CFTypeRef object = JSONCreateWithString(NULL, CFSTR("[foo, bar]"), kJSONReadOptionsDefault, &error);
if (object) {
// Do something with object
CFRelease(object);
Expand Down Expand Up @@ -50,6 +50,8 @@ Generating in C:
CFRelease(json);
}
CFRelease(array);

_You should also take care of `error` object_

## Options

Expand All @@ -67,6 +69,8 @@ Generating in C:

## Using in your projects

There are just 2 files `CoreJSON.h` and `CoreJSON.c` you'll need together with `libyajl`.

For your own (non Mac AppStore) OSX projects the quick way is to:

1. `brew install yajl`
Expand Down

0 comments on commit c9d7b12

Please sign in to comment.