[erlang-questions] Question regarding JSX Erlang parser

alisdair alisdairsullivan@REDACTED
Tue Jan 22 21:34:47 CET 2013

> I came across https://github.com/talentdeficit/jsx. I have a couple of questions regarding this module:
> 1. Does it allow us to parse JSON data being served over an HTTP stream? This might be useful for consuming web services that serve JSON. If so, is there any example code that shows how this can be done?

Yes it does. See https://github.com/talentdeficit/jsx#decode12. 
> 2. Does it read the entire JSON data into memory or does it behave like a SAX parser where the data is read in chunks?

jsx retains just enough context in memory to resume parsing. in most cases very little is retained.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130122/8b497bba/attachment.htm>

More information about the erlang-questions mailing list