def write(self, data):
        """Writes json data to the output directory."""
        cnpj, data = data

        path = os.path.join(self.output, '%s.json' % cnpj)
        with open(path, 'w') as f:
            json.dump(data, f, encoding='utf-8')
Writes json data to the output directory.