Android Bug, JSONWriter don't flush on destroy

JSONWriter don't flush StringBuffer to Stream on destroy when in compiled for android as it does for windows.

Can you please provide the sample code to reproduce the issue?