cJSON icon indicating copy to clipboard operation
cJSON copied to clipboard

Parse an input stream

Open GiulioDallaVecchia opened this issue 3 years ago • 1 comments

Hi cJSON team,

I'm wondering if is it possible to parse an input stream. For example, if I'm receiving data from a socket, I have to wait and collect the whole data into a buffer or can I parse the input data in chunks, on-the-fly?

Thanks a lot in advance,

Giulio Dalla Vecchia

GiulioDallaVecchia avatar Jan 24 '22 14:01 GiulioDallaVecchia

I‘m afraid that cJSON does not support streaming parsing, jsoncpp may meet your case.

Alanscut avatar Jan 25 '22 09:01 Alanscut