Reconfigured the JsonGenerator to not close the underlying stream. #343

Added a test to enforce behavior.