question: protected void doneInternal ( ) { if ( states . size ( ) > 0 ) throw new JsonWriterException ( "Unclosed JSON objects and/or arrays when closing writer" ) ; if ( first ) throw new JsonWriterException ( "Nothing was written to the JSON writer" ) ; }
target:  Ensures that the object is in the finished state.