def METHOD_NAME(self):
    """
    Generate a dict which starts at the specified object and gives all the childrens.
    Returns:
        a dict of the tree structure.
    """
    # This is the initial structure whe want.
    self.json = {
        'name':self.name,
        'child':[],
        'path':'/'.join(self.path)
    }
    # Check if the actual node has children
    for element in self.child:
        # If it's the case each child's dict is append
        self.json['child'].append(element.METHOD_NAME())
    return self.json