{"id":556,"date":"2012-11-21T13:07:43","date_gmt":"2012-11-21T17:07:43","guid":{"rendered":"http:\/\/www.rakkar.org\/blog\/?p=556"},"modified":"2012-11-21T13:07:43","modified_gmt":"2012-11-21T17:07:43","slug":"simple-comparison-of-7-json-libraries-for-c","status":"publish","type":"post","link":"https:\/\/rakkar.org\/blog\/index.php\/2012\/11\/21\/simple-comparison-of-7-json-libraries-for-c\/","title":{"rendered":"Simple comparison of 7 JSON libraries for C++"},"content":{"rendered":"<p>\t\t\t\tI 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.<\/p>\n<p>Jzon v2-0.zip<br \/>\nI really liked this because it is the easiest to use and only has one cpp file. But it relies on STL<\/p>\n<p>jansson<br \/>\nKind 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.<\/p>\n<p>jsoncpp<br \/>\nDocumented, but uses STL<\/p>\n<p>json-glib<br \/>\nDocumented, but through kind of usesless auto documentation http:\/\/developer.gnome.org\/json-glib\/<br \/>\nEven though they include a Visual Studio solution, it didn&#8217;t build.<\/p>\n<p>yajl<br \/>\nOnly reads, cannot write<\/p>\n<p>SimpleJSON-master<br \/>\nRelies on STL<\/p>\n<p>talkson<br \/>\nNot sophisticated enough\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/556"}],"collection":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=556"}],"version-history":[{"count":0,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/556\/revisions"}],"wp:attachment":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}