add the ability to generate JSON stream (one JSON per line)