':type path: path'

def to_file(self, path):

    data = self.to_dict()
    display.info(('>>>    Metadata:    %s\n%s' % (path, data)), verbosity=3)
    with open(path, 'w') as data_fd:
        json.dump(data, data_fd, sort_keys=True, indent=4)
