code: public Integer getInt(String name, boolean strict) throws JsonException {
          JsonElement el = get(name);
          Integer res = null;
          if (strict && !el.isNumber()) {
              throw Util.typeMismatch(name, el, "int", true);
          }
          if (el.isNumber()) {
              res = el.asInt();
          }
          if (el.isString()) {
              res = Util.toInteger(el.asString());
          }
          if (res == null)
              throw Util.typeMismatch(name, el, "int", strict);
          return res;
      }
docs: Returns the value mapped by {@code name} if it exists and is an int or
  can be coerced to an int, or throws otherwise.
  
  @throws JsonException if the mapping doesn't exist or cannot be coerced
  to an int.