public boolean getBoolean(String key) throws JSONException {
        Object o = get(key);
//#if CLDC!="1.0"
//#         if (o.equals(Boolean.FALSE) ||
//#else
        if (o.equals(FALSE) ||
//#endif
                (o instanceof String &&
                ((String)o).toLowerCase().equals("false"))) {
            return false;
//#if CLDC!="1.0"
//#         } else if (o.equals(Boolean.TRUE) ||
//#else
        } else if (o.equals(TRUE) ||
//#endif
                (o instanceof String &&
                ((String)o).toLowerCase().equals("true"))) {
            return true;
        }
        throw new JSONException("JSONObject[" + quote(key) +
                "] is not a Boolean.");
    }