Use json-array-stream to handle stringifying json

Each object now gets passed on one after the other with
no buffering. json-array-stream module takes care of wrapping
the objects in an array and separating with new lines and commas