Allow the class to directly stream to browser

Allow the class to directly stream to browser without stream. Useful to write large json data to browser on low memory conditions.