poison icon indicating copy to clipboard operation
poison copied to clipboard

Streaming support

Open liveforeverx opened this issue 9 years ago • 5 comments

Did you plan to add streaming support to poison?

liveforeverx avatar Nov 03 '15 10:11 liveforeverx

Yes.

devinus avatar Dec 10 '15 06:12 devinus

Just curious @liveforeverx, what more do you need besides:

stream |> Stream.map(&Poison.decode!/1)

? JSON stream is usually one document per line (with all "\n" escaped)

teamon avatar Sep 01 '16 08:09 teamon

@liveforeverx is this about streaming parsing?

ku1ik avatar Jul 20 '17 10:07 ku1ik

Another way to interpret this is streaming a large dataset into the encoder and emitting pieces as they are available, as iodata.

isaacsanders avatar Mar 02 '18 17:03 isaacsanders

Yeah, streamed encoding and streamed decoding are two different things, and both would be useful in specific situations.

ku1ik avatar Mar 03 '18 07:03 ku1ik