original_docstring: Load channel and programme data from JSON.
  
          Args:
              json_(str): A string of JSON text.
  
          
docstring: Load channel and programme data from JSON.
docstring_tokens: Load channel and programme data from JSON .
code: def from_json(self, json_: str) -> None:
          """Load channel and programme data from JSON.
  
          Args:
              json_(str): A string of JSON text.
  
          """
          payload = json.loads(json_)
          new_chans: list = []
  
          for item in payload:
              if item['__type__'] == "__channel__":
                  new_chans.append(channel_from_json(json.dumps(item)))
              # TODO: add jobs, programmes, etc
          self._channels = new_chans
code_tokens: def from_json ( self , json_ : str ) -> None : payload = json . loads ( json_ ) new_chans : list = [ ] for item in payload : if item [ '__type__' ] == "__channel__" : new_chans . append ( channel_from_json ( json . dumps ( item ) ) ) self . _channels = new_chans
short_docstring: Load channel and programme data from JSON.
short_docstring_tokens: Load channel and programme data from JSON .
comment: """Load channel and programme data from JSON.
  
          Args:
              json_(str): A string of JSON text.
  
          """$SEP$# TODO: add jobs, programmes, etc