code: public Long getLong(int index) {
          Object number = list.get(index);
          if (number == null) return null;
          if (number instanceof Long) return (Long) number;
          if (number instanceof Double) return ((Double) number).longValue();
          throw new JsonException("not a long");
      }
docs: Returns the {@link java.lang.Long} at index or null if not found.
  
  @param index
  @return the value at index or null if not found
  @throws java.lang.IndexOutOfBoundsException if the index is out of the array bounds