code: public JSONObject put(String key, boolean value) throws JSONException {
          if (key == null) {
              throw new JSONException("Null key.");
          }
          m_map.put(key, value);
          return this;
      }
docs: Put a key/boolean pair in the JSONObject.
  
  @param key   A key string.
  @param value A boolean which is the value.
  @return this.
  @throws JSONException If the key is null.