code: async def init(self) -> None:
          '''Load configuration in JSON format from either a file or
          a raw data string.'''
  
          if self.data:
              return
  
          if self.json_data:
              try:
                  self.data = json.loads(self.json_data)
  
              except Exception:
                  Log.exception('Falied to load raw configuration')
  
          else:
              try:
                  with open(self.json_path, 'r') as f:
                      self.data = json.load(f)
  
              except Exception:
                  Log.exception('Failed to load configuration from %s',
                                self.json_path)
                  self.data = {ync def init(self) -> None:
          '''Load configuration in JSON format from either a file or
          a raw data string.'''
  
          if self.data:
              return
  
          if self.json_data:
              try:
                  self.data = json.loads(self.json_data)
  
              except Exception:
                  Log.exception('Falied to load raw configuration')
  
          else:
              try:
                  with open(self.json_path, 'r') as f:
                      self.data = json.load(f)
  
              except Exception:
                  Log.exception('Failed to load configuration from %s',
                                self.json_path)
                  self.data = {}
docs: Load configuration in JSON format from either a file or
          a raw data string.