code: public JSONObject element( String key, boolean value ) {
        verifyIsNull();
        return element( key, value ? Boolean.TRUE : Boolean.FALSE );
     }
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.