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

Could not understand how to use this library #13

Open
rohitsay89 opened this issue Jun 3, 2018 · 2 comments
Open

Could not understand how to use this library #13

rohitsay89 opened this issue Jun 3, 2018 · 2 comments

Comments

@rohitsay89
Copy link

I am not able to understand from the description about how can I use the json-builder to create json files from the software. Can you please post a bit more explanation on how to create JSON files using the functions.

Thanks,
Rohit

@crides
Copy link

crides commented Jun 4, 2018

  1. RTFM!
  2. I'm on a phone right now so the explanations might not be very detailed. You basically use the json_object_new function to create a new empty object, and then use the json_object_push to add new values into the object. Then you allocate a appropriate buffet using the json_measure function and use the json_serialize function to turn in into a string. After that you just open a file and write that string to the file. Done!

@harkue
Copy link

harkue commented Nov 6, 2019

Also we can add example folder for sample code.

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

No branches or pull requests

3 participants