code: def get_settings_json(self):
          
          return {
              'scanner': None if self.scanner is None else self.scanner.save(),
              'parser': None if self.parser is None else self.parser.save()
          }
docs: Convert generator settings to JSON.
  
          Returns
          -------
          `dict`
              JSON data.