I have a network connection throwing json at me.I don't want to do blocking calls.
I suppose I need to do chunking myself and start counting {} to pass to jansson a"single json frame" to decode.
If both the JSON emitter and receiver are open source, or you are allowed to modify their code, you could adopt a simple convention. That every JSON frame is ended by a formfeed character.
PS. My pet open source (embryonic) project (using JSON and jsoncpp) is RefPerSys (an open source inference engine for expert systems).
-- Basile Starynkevitch <bas...@starynkevitch.net> (only mine opinions / les opinions sont miennes uniquement) 92340 Bourg-la-Reine, France web page: starynkevitch.net/Basile/