I just discovered YAJL project which just does what I need.
- Read from stream
- Callback on each valid parsed token
- Reparse incomplete json when new data arrived
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:
- lightweight. boost or Qt are not suitable
- I need something what I may freely use in commercial closed source software (mit, public domain, etc).
- Support for not blocking read. or allow to feed data (append_incoming_data).