code: public JsonWriter endArray() throws IOException {
        checkAndPop(JsonTokenType.BEGIN_ARRAY);
        popIf(JsonTokenType.NAME);
        writer.endArray();
        return this;
     }
docs: Ends the current array
  
  @return This structured writer
  @throws IOException Something went wrong writing