def contains_key(d, search_key):
    """Does any generic mixed dict/list (i.e. json-like) object contain the key?

    Args:
        d (:obj:`json`): A mixed dict/list (i.e. json-like) object to query.
        search_key (:obj:`hashable`): A key to search for.
    Returns:
        (:obj:`True` or :obj:`False`)
    """
    if isinstance(d, list):
        return any(contains_key(item, search_key) for item in d)
    elif not isinstance(d, dict):
        return False
    return (search_key in d
            or any(contains_key(d[k], search_key) for k in d))