JSONSerializer should accept a Writer to serialize objects
Brought to you by:
charliehubbard
Even if String serialize(Object) is very convenient, it is best to void serialize(Object, Writer). Many time you want to serialize an object directly to a writer(servlet, files?) instead of serialize to string and then write it in a Writer.
Thanks.
PS. I could provide a patch, if you want.
This is fixed in the latest version.