[Haskell-cafe] Is it possible to have constant-space JSON decoding?

Iustin Pop iustin at google.com
Tue Dec 4 15:38:18 CET 2012


On Tue, Dec 04, 2012 at 12:23:19PM -0200, Felipe Almeida Lessa wrote:
> Aeson doesn't have an incremental parser so it'll be
> difficult/impossible to do what you want.  I guess you want an
> event-based JSON parser, such as yajl [1].  I've never used this
> library, though.

Ah, I see. Thanks, I wasn't aware of that library.

So it seems that using either 'aeson' or 'json', we should be prepared
to pay the full cost of input message (string/bytestring) plus the cost
of the converted data structures.

thanks!
iustin



More information about the Haskell-Cafe mailing list