code: public BigDecimal getBigDecimal(int index) {
          Object found = content.get(index);
          if (found == null) {
              return null;
          } else if (found instanceof Double) {
              return new BigDecimal((Double) found);
          }
          return (BigDecimal) found;
      }
docs: Retrieves the value by the position in the {@link JsonArray} and casts it to {@link BigDecimal}.
  
  @param index the index of the value.
  @return the value at the given index.
  @throws IndexOutOfBoundsException if the index is negative or too large.