def export(self, node):
        """Return JSON for tree starting at `node`."""
        dictexporter = self.dictexporter or DictExporter()
        data = dictexporter.export(node)
        return json.dumps(data, **self.kwargs)
Return JSON for tree starting at `node`.