Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A convenience C++ wrapper library for JSON-Glib providing friendly syntactic sugar for parsing JSON

tree: c1a59134ea

Fetching latest commit…

Cannot retrieve the latest commit at this time

README
This library is a wrapper for the json-glib library that aims tp provide the user with a trivial alternative API to the API provided by the base json-glib library.

This is the first version of the json-me (JSON made easy) that I created as a weekend project.
It has the following issues that I might fix in a later release. Given that I don't have much time to
work on project like this and given that my priorities lie with different projects, you may consider
it as a wishlist that if you like this library would make me very happy if you could contribute it:

* Probably need to add a 'keys' method to AbstractNode so the user can find out what members a JSON 
  object has. A 'has_key(std::string keyy)' might be usefull to possibly. 
* I didn't find a list of the Gtype's that json-glib can produce, there are probably some pieces of 
  dead code in gobj/GobjectImplScalar.cpp and there might be one missing.
* I didn't write any unit tests. All I wrote was a litle tiny program for a basic API test. 
  Given the limited test coverage, there may still be some bugs in this library.
* The CMakeLists.txt doesn't look for its dependencies and just adds -I flags that happen to be right 
  on Ubuntu 11.4. Should do some real checking.
* I didn't create non of the operator<< stuff for making usage ostream usage easy. Tried to for half 
  an hour and kept getting useless messages from my compiler. Should make the library even more 
  friendly if we could fix this.

Seeing the above list, if you feel like fixing any of these problems, please feel free to do so and send  me your patches if you do.

To build jsonme, take the following steps:

 cd build

 cmake ..

 make

 make test

 sudo make install
Something went wrong with that request. Please try again.