docs: public Number getNumber(int index) throws JSONException {
          Object object = this.get(index);
          try {
              if (object instanceof Number) {
                  return (Number)object;
              }
              return JSONObject.stringToNumber(object.toString());
          } catch (Exception e) {
              throw new JSONException("JSONArray[" + index + "] is not a number.", e);
          }
      }