Could not understand how to use this library
rohitsay89 opened this issue · 2 comments
rohitsay89 commented
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 commented
- RTFM!
- I'm on a phone right now so the explanations might not be very detailed. You basically use the
json_object_newfunction to create a new empty object, and then use thejson_object_pushto add new values into the object. Then you allocate a appropriate buffet using thejson_measurefunction and use thejson_serializefunction to turn in into a string. After that you just open a file and write that string to the file. Done!
harkue commented
Also we can add example folder for sample code.