def on_close(self, stats, previous_stats):
reports = {<EOL>'<STR_LIT>': self._messages,<EOL>'<STR_LIT>': stats,<EOL>'<STR_LIT>': previous_stats,<EOL>}<EOL>print(json.dumps(reports, cls=JSONSetEncoder, indent=<NUM_LIT:4>), file=self.out)<EOL>
Print the extended JSON report to reporter's output.

        :param dict stats: Metrics for the current pylint run
        :param dict previous_stats: Metrics for the previous pylint run