newline json read/write stream