I just discovered YAJL project which just does what I need.
But I prefer C++. Of course I can use this library from C++ project and even write my own wrapper if I really want to but anyway native C++ is preferable.
I looked at JsonCPP but looks like it can't read incomplete json data from stream.
Is there any other C++ libraries for parsing json streams?
Some more requirements:
Recently I search library with similar requirements, and actually found only 1.5 libraries that support such requirements:
one header library, BSD licence, and have interface like this:
Iter parse(value& out, const Iter& first, const Iter& last, std::string* err);
so you can create  append_incoming_data with a couple of lines of code.
BSD, c++11 support, but interface
that allow parse partly arrived from network json it require patch:https://github.com/dropbox/json11/pull/55
P.S.
lightweight. boost or Qt are not suitable
Actually, they are not suitable because of
allow to feed data
At now both Qt5 json and boost property_tree can not parse
half ready json.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With