A very lightweight wrapper to make working with the json-c library slightly more straightforward.
Instead of relying on json-c's json_object_object_foreach()
and storing values as you loop through them, this wrapper will give you easy access to the values.
Sample JSON
{
"aBool": true
}
Sample C++
#include <json/json.h>
JsonObject root;
json_object *config = json_tokener_parse(json.c_str());
JsonObject::buildObject(root, config);
bool myValue = root.getChild("aBool").getBool(); // true
MIT