code: func (wl *BasicNet) MarshalJSON() ([]byte, error) {
  	var ss = make([]string, 0, len(wl.whitelist))
  	for i := range wl.whitelist {
  		ss = append(ss, wl.whitelist[i].String())
  	}
  
  	out := []byte(`"` + strings.Join(ss, ",") + `"`)
  	return out, nil
  }
docs: // MarshalJSON serialises a network whitelist to a comma-separated
  // list of networks.