def text(self):
        """Get indent text as \t or string of spaces
        """
        if self.useTabs:
            return '\t'
        else:
            return ' ' * self.width
def json_usage(root):
    root = os.path.abspath(root)
    result = [['Path', 'Parent', 'Usage']]
    result.extend(entry for entry in usage_iter(root))
    return json.dumps(result)