Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New example for generating JSON (as well as source JSON file) #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgrandi
Copy link

@mgrandi mgrandi commented Nov 15, 2013

Added a new example to demonstrate how to actually generate JSON, how to use yajl_gen_status codes, and how to get access to the buffer after you are done generating. I also included public_twitter_timeline.json, since we are creating the first object in that JSON file, in case anyone wants to see the original to visually see what is going on in gen_example.c

I have not done any work for this example to be processed or whatever by doxygen , or to add it as a build target or any of that, as I am not familiar with cmake / doxygen.

…les are just for parsing it. I also added the 'original' JSON document that we are creating in gen_example.c
@slinkinone
Copy link

Thanks a lot for your job and a great example. It definitely should be merged.

@slinkinone
Copy link

@mgrandi pls, add yajl_gen_free to your example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants