code: public static JsonArray from(Object... items) {
          JsonArray array = new JsonArray(items.length);
          for (Object item : items) {
              if (checkType(item)) {
                  array.add(item);
              } else {
                  throw new IllegalArgumentException("Unsupported type for JsonArray: " + item.getClass());
              }
          }
          return array;
      }
docs: Creates a new {@link JsonArray} and populates it with the values supplied.
  
  If the type is not supported, a {@link IllegalArgumentException} exception is thrown.
  @param items the items to be stored in the {@link JsonArray}.
  @return a populated {@link JsonArray}.