is there a parser for nodejs that can be connected to a a stream of chunked JSON (or XML) data and will emit events similar to how the built in JSON parser does?
The stream I am about to parse is coming from an HTTP request to a backend server for example. No special formatting can be assumed for the incoming JSON. IOW, the solution in nodejs - parsing chunked twitter json won't work for me.
Jan
I don't know if I understood your question, but I have used node-xml before with streamed, chunked data. There are indeed events which are fired. sax-js seems more recently active, but I cannot comment on that project.
I cannot comment on an equivalent JSON parser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With