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