bmeck / node-protocols

Place for the gathering of protocol implementations
5 stars 0 forks source link

streaming json #15

Open creationix opened 12 years ago

creationix commented 12 years ago

It would be nice to have a streaming json encoder and decoder. This can be SAX based with higher-level abstractions built on top (like declarative filter queries on the stream)

ghost commented 12 years ago

I've been using JSONStream for a long time and it's been working great. Also sax is an xml parser, do you mean clarinet? https://github.com/dscape/clarinet For the stuff I build I usually like something at the level of abstraction that JSONStream is at, perhaps the parser could just be modified to use clarinet and we could measure the performance and memory usage difference?

creationix commented 12 years ago

By SAX I meant the event style. For low-level stuff, I like the yajl interface.