make serialize method take a writer instead of an outputstream; support output streams with a default method in JsonElement.
readme