package
New line-delimeted JSON parser with a stream interface
npm install json-streamGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.

New line-delimeted JSON parser with a stream interface.
npm install json-streamvar JSONStream = require('json-stream');
var stream = JSONStream();
stream.on('data', function (chunk) {
console.dir(chunk);
});
stream.write('{"a":');
stream.write('42}\n');
stream.write('{"hel');
stream.write('lo": "world"}\n');Will output:
{ a: 42 }
{ hello: 'world' }If invalid JSON gets written, it's silently ignored.
jcrugzz
jcrugzz@gmail.com