def json_record(self, message, extra, record, traceback):
extra['<STR_LIT:message>'] = message<EOL>if '<STR_LIT:time>' not in extra:<EOL><INDENT>extra['<STR_LIT:time>'] = datetime.now(pytz.utc)<EOL><DEDENT>if traceback is not None:<EOL><INDENT>extra['<STR_LIT>'] = traceback<EOL><DEDENT>return extra<EOL>
Prepares a JSON payload which will be logged.

        Override this method to change JSON log format.

        :param message: Log message, e.g., `logger.info(msg='Sign up')`.
        :param extra: Dictionary that was passed as `extra` param
            `logger.info('Sign up', extra={'referral_code': '52d6ce'})`.
        :param record: `LogRecord` we got from `JSONFormatter.format()`.
        :return: Dictionary which will be passed to JSON lib.