A super easy to use, platform-independent C++ JSON library with no dependencies beyond the standard libraries, no annoying make files, no installation of any other software needed. Read up on the JSON format here: http://json.org
Read the README.txt file for usage and examples.
LAST UPDATED: 8/31/2014 (see README.txt for changelog)
- Easy to use
- Platform independent
- No dependencies other than the standard libraries
- No nerdy makefiles
- No need to install other software to build the library
- Familiar std::map and std::vector-like usage
Ok for testing. Now for a real job, it's a little short: (1) Need a delete function for removing items from arrays or object (2) Need a support for pointers: This is very important for applications that modify the json data. If a do json::Array *Ar = new json@Array; I can do: Ar->push_back("truc"); fs = json::Serialize(*Ar); (*Ar) = "Machin"; fs = json::Serialize(*Ar); The last two should be handled with a better syntax. Now the real issue is if I were willing to modify a complex json tree. For instance having an object that contains an array; if i do: json::Array R = myVal.ToArray; and then modify the array R, my value is not modified because R contains a copy of the array that is inside the value. Like when working with XML nodes, it is necessary to get a pointer to the item I want to modify. Apparently I didn't find a way to do that. (3) The documentation is far from what is needed to easily use the library. It is even misleading. When saying "An object is just a pair of key/values" this is wrong. The object is the container containing such pairs.
Excellent module. Really simple indeed.
Simple and easy to use JSON c++ classes
Really straight and easy to use. And with reasonable documentation, now.
Any exaples with deserialization?