TypeReasonJava.IO.IOExceptionif the JSON document is incomplete.
Flushes and closes this writer and the underlying Java.IO.Writer.
[Android Documentation]