[api] make this a newline delimited stream
[test] use json-stream for object comparing since we are now newline delimited