public JsonReader endObject() throws IOException {
      if (currentValue.getKey() != END_OBJECT) {
         throw new IOException("Expecting END_OBJECT, but found " + jsonTokenToStructuredElement(null));
      }
      consume();
      return this;
   }
public JsonReader endObject ( ) throws IOException { if ( currentValue . getKey ( ) != END_OBJECT ) { throw new IOException ( "Expecting END_OBJECT, but found " + jsonTokenToStructuredElement ( null ) ) ; } consume ( ) ; return this ; }
Ends the document

@return the structured reader
@throws IOException Something went wrong reading