def METHOD_NAME(self, d):
    """
    The update is specialized for JSON-like data.  This
    recursively replaces dictionaries with Bunch objects.
    """
    def _replace_dict_in_list(lst):
        ans = []
        for v in lst:
            if type(v) is dict:
                ans.append(Bunch())
                ans[-1].METHOD_NAME(v)
            elif type(v) is list:
                ans.append(_replace_dict_in_list(v))
            else:
                ans.append(v)
        return ans
    if isinstance(d, Mapping):
        item_iter = d.items()
    else:
        item_iter = d
    for k, v in item_iter:
        if type(v) is dict:
            self[k] = Bunch()
            self[k].METHOD_NAME(v)
        elif type(v) is list:
            self[k] = _replace_dict_in_list(v)
        else:
            self[k] = v