poison
poison copied to clipboard
Streaming support
Did you plan to add streaming support to poison
?
Yes.
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)
@liveforeverx is this about streaming parsing?
Another way to interpret this is streaming a large dataset into the encoder and emitting pieces as they are available, as iodata.
Yeah, streamed encoding and streamed decoding are two different things, and both would be useful in specific situations.