[erlang-questions] Question regarding JSX Erlang parser
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...
More information about the erlang-questions