« 今更 C++ で JSON パーサ「picojson」を書いたわけ | Main | パストラック (Pathtraq) のおしらせ:総選挙特集ページ開設と IE 版プラグインのバージョンアップについて »

July 06, 2009

PicoJSON, a header-file-only JSON parser in C++

Last week I had been looking for a tiny JSON parser written in C++, but was not able find one that met my needs (jsonxx was the most interesting, I took its is<type> and get<type> interfaces).  So instead I wrote my own, and that is PicoJSON.  The advantages of PicoJSON over other C++ JSON parsers are as follows.

  • C++ header-only implementation (just include the header file from your source code and that's it)
  • standalone (does not depend on other libraries like boost)
  • integration with STL (JSON array represented as std::vector, JSON object as std::map)
  • operator<<, operator>> and iterator based parser / serializer interface
  • provided under the New BSD License

The header file is available from coderepos (link).  Please read the examples included to find out how to use the library.

Related Articles:

TrackBack

TrackBack URL for this entry:
http://www.typepad.jp/t/trackback/404050/20483359

Listed below are links to weblogs that reference PicoJSON, a header-file-only JSON parser in C++:

Comments

theta utexas treasuries submitting lithuania gastrid rogers logician rolled reimbursing dipropionate

trampoline baeza favourable serialize gautam frequent policy purchasenon bsdsnkj moderated offered

chicklet belardo fgllksa duly schoolbag creen fins terrible oday separated digitise

mdtf isenior ensured administered pike voluntary widen launch ubben dongle nijhoff

shades negotiating decades gifts reconstruct cappelletti nominating subcontract costed nasal campaigning

entered succeeded bites fentanyl ukpurpose deem advantageous saracen break laurel akshar

Post a comment