class JsonUtils {

    public static boolean getJsonBooleanValue(String jsonStr, String keys) {
        try {
            Object rawValue = getJsonRawValue(jsonStr, keys);
            if (rawValue == null) {
                return false;
            } else {
                if (rawValue instanceof Boolean) {
                    logger.debug("getJsonBooleanValue(): the raw value is a Boolean Object={}", rawValue);
                    return (Boolean) rawValue;
                } else {
                    logger.debug("getJsonBooleanValue(): the raw value is NOT an Boolean Object={}", rawValue);
                    return false;
                }
            }
        } catch (Exception e) {
            logger.debug(
                    "getJsonBooleanValue(): unable to parse json to retrieve value for field={}. Exception was: {}",
                    keys, e.toString(), e);
        }
        return false;
    }

}