code: public JsonReader endObject() throws IOException {
        if (currentValue.getKey() != END_OBJECT) {
           throw new IOException("Expecting END_OBJECT, but found " + jsonTokenToStructuredElement(null));
        }
        consume();
        return this;
     }
docs: Ends the document
  
  @return the structured reader
  @throws IOException Something went wrong reading