json-stringify-stream

streaming json stringifier

npm install json-stringify-stream
2 downloads in the last week
9 downloads in the last month

json-stringify-stream

Calls JSON.stringify() on data written to it and emits the result.

var stringify = require('json-stringify-stream')
  , st = stringify()

st.pipe(process.stdout)
st.write([1,2,3])

/* output:
'[1,2,3]'
*/

events

stringify() instances are readable/writable streams.

Their data events are simply the stringified form of what was written to it.

license

MIT

npm loves you