Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

allejo/JsonObject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JsonObject

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.

Example Usage

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

License

MIT

About

A lightweight wrapper for the JSON-C library that makes handling JSON a bit more developer friendly.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages