Skip to content

Instantly share code, notes, and snippets.

@lancecarlson
Created May 3, 2013 20:33
Show Gist options
  • Save lancecarlson/5513834 to your computer and use it in GitHub Desktop.
Save lancecarlson/5513834 to your computer and use it in GitHub Desktop.
example array of objects to JSON stream
var stream = JSONStream.stringifyObject()
stream.pipe(response)
_.pairs(myObject).map(function(current) { stream.write.apply(stream, current); })
stream.end()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment