src/main/java/com/github/jreddit/parser/util/JsonUtils.java
public static Boolean safeJsonToBoolean(Object obj) {
        String str = safeJsonToString(obj);
        Boolean booleanValue = str != null ? Boolean.parseBoolean(str) : null;
        return booleanValue;
    }
public static Boolean safeJsonToBoolean(Object obj) {
        String str = safeJsonToString(obj);
        Boolean booleanValue = str != null ? Boolean.parseBoolean(str) : null;
        return booleanValue;
    }
Safely converts an object into an boolean

@param obj The object to convert.
@return a Boolean representing the boolean value of the Object (null only if the object was also null)