Convert generator settings to JSON.

        Returns
        -------
        `dict`
            JSON data.

def get_settings_json(self):
        """Convert generator settings to JSON.

        Returns
        -------
        `dict`
            JSON data.
        """
        return {
            'scanner': None if self.scanner is None else self.scanner.save(),
            'parser': None if self.parser is None else self.parser.save()
        }