docs: public JSONObject put(String key, Object value) throws JSONException {
          if (key == null) {
              throw new NullPointerException("Null key.");
          }
          if (value != null) {
              testValidity(value);
              this.map.put(key, value);
          } else {
              this.remove(key);
          }
          return this;
      }