Should include simple examples in documentation #76

Open
ghost opened this Issue Mar 24, 2012 · 0 comments

Comments

Projects
None yet
0 participants
@ghost

ghost commented Mar 24, 2012

This is an AWESOME library.

It would be MUCH easier to consume if there was a basic "hello world" example near the top of the documentation.

My favorite example of example-based documentation is the Zombie.js project: http://zombie.labnotes.org/

Something like:

const char *data = "{ \"o\": 1, \"n\": 2 }";
JSONDecoder *decoder = [JSONDecoder decoder];
id obj = [decoder objectWithUTF8String: data length: strlen(data)];
NSString *output = [obj JSONString];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment