code: func (s *Server) AsJSONString() string {
  	str, err := json.Marshal(s)
  	if err != nil {
  		logger.Log.Errorf("error getting server as json: %s", err.Error())
  		return ""
  	}
  	return string(str)
  }
docs: // AsJSONString returns the server as a json string