libJSON is a great C/C++ library written by Jonathan Wallace and can be found on Sourceforge. Previously we looked at how to create a new JSON node tree programmatically that could be sent over the wire to consumer. Now we'll look at the consumer side and see how to parse the JSON string into our application.
libJSON Basic Parser Example
libJSON Array Example
libJSON is a great C/C++ library written by Jonathan Wallace and can be found on Sourceforge. This quick example will show you how to add an array to your JSON tree.
libJSON Child Node Example
libJSON is a great C/C++ library written by Jonathan Wallace and can be found on Sourceforge. In my previous post, I showed you an example of how to create a very simple JSON tree without any branches, just a few nodes. Now we'll look at how to create a branch off the main tree.
libJSON Simple Write Example
libJSON is a great C/C++ library written by Jonathan Wallace and can be found on Sourceforge. I needed a quick and easy way to generate JSON strings to dump in MQ messages and also parse JSON from various sorces and after trying a few of them, I settled on libJSON as the easest to use. The documentation included with the source was great for figuring out what the functions did, but it took me a while to get up and running due to a lack of examples.