code: func (q *Query) GetPayload() string {
  	j, err := json.Marshal(struct {
  		Encoding string `json:"encoding"`
  		Method   string `json:"method"`
  		NS       string `json:"key"`
  	}{
  		Encoding: q.encoding,
  		Method:   q.method,
  		NS:       q.ns,
  	})
  	sharedutils.CheckError(err)
  	return string(j) + "\n"
  }
docs: // Get the payload to send to pfconfig based on the Query attributes
  // Also sets the payload attribute at the same time