Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a (JSON or XML) stream parser for nodejs? [closed]

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

like image 301
Jan Algermissen Avatar asked Nov 05 '22 14:11

Jan Algermissen


1 Answers

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.

like image 165
Jorge Israel Peña Avatar answered Nov 09 '22 13:11

Jorge Israel Peña