def write(self, node, filehandle):
dictexporter = self.dictexporter or DictExporter()<EOL>data = dictexporter.export(node)<EOL>return json.dump(data, filehandle, **self.kwargs)<EOL>
Write JSON to `filehandle` starting at `node`.