code: public void add(JsonElement element) {
      if (element == null) {
        element = JsonNull.INSTANCE;
      }
      elements.add(element);
    }
docs: Adds the specified element to self.
  
  @param element the element that needs to be added to the array.