code: public JsonWriter value(Object value) throws IOException {
        Preconditions.checkArgument(inArray() || writeStack.peek() == JsonTokenType.NAME,
                                    "Expecting an array or a name, but found " + writeStack.peek());
        writeObject(value);
        popIf(JsonTokenType.NAME);
        return this;
     }
docs: Writes an array value
  
  @param value the value
  @return This structured writer
  @throws IOException Something went wrong writing