code: func (parser *PeerResponseParser) ParseResponse(channel string, res ServiceResponse) error {
  	var listPeers peerLister
  	if channel == "" {
  		listPeers = res.ForLocal()
  	} else {
  		listPeers = &simpleChannelResponse{res.ForChannel(channel)}
  	}
  	peers, err := listPeers.Peers()
  	if err != nil {
  		return err
  	}
  
  	channelState := channel != ""
  	b, _ := json.MarshalIndent(assemblePeers(peers, channelState), "", "\t")
  	fmt.Fprintln(parser.Writer, string(b))
  	return nil
  }
docs: // ParseResponse parses the given response about the given channel