code: public JsonWriter value(@NonNull Iterator<?> value) throws IOException {
        Preconditions.checkArgument(inArray() || writeStack.peek() == JsonTokenType.NAME,
                                    "Expecting an array or a name, but found " + writeStack.peek());
        popIf(JsonTokenType.NAME);
        return value(Collect.asIterable(value));
     }
docs: Writes an Iterator
  
  @param value the Iterator to be written
  @return This structured writer
  @throws IOException Something went wrong writing