docs: static double checkDouble(double d) throws JSONException {
          if (Double.isInfinite(d) || Double.isNaN(d)) {
              throw new JSONException("Forbidden numeric value: " + d);
          }
          return d;
      }