Categories
Uncategorized

Simple comparison of 7 JSON libraries for C++

I needed a JSON library for C++. Despite the large number of them on the internet, only one was suitable. My requirement was that it can both read and write (many can only read) and that it does not have external dependencies, including STL.

Jzon v2-0.zip
I really liked this because it is the easiest to use and only has one cpp file. But it relies on STL

jansson
Kind of large, but includes a VS2010 project so you can verify it compiles on Windows. Does not rely on STL. That is what I ended up using.

jsoncpp
Documented, but uses STL

json-glib
Documented, but through kind of usesless auto documentation http://developer.gnome.org/json-glib/
Even though they include a Visual Studio solution, it didn’t build.

yajl
Only reads, cannot write

SimpleJSON-master
Relies on STL

talkson
Not sophisticated enough