func postPool(key Pool) []byte{
	pool:=&Pool{Name:   key.Name, Fullpath: key.Fullpath, Monitor: key.Monitor, Balancing: key.Balancing}
	jsonPool, _ := json.Marshal(pool)
	return jsonPool
}
Convert Pool to json format
package main
import(
	"encoding/json"
	 "fmt"
	 "net/http"
	 "io/ioutil"
	 "strings"
	 "crypto/tls"
)
func requestREST(REST string, url string, data []byte)([]byte, string){
	tr := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}
	if c.Ssl["ssl"]{
		tr = &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: false}}
	}
    client := &http.Client{Transport: tr}
	request, err := http.NewRequest(REST, url, nil)
    if(data != nil){
    	payload := strings.NewReader(string(data))
    	request, err = http.NewRequest(REST, url, payload)	
    }
	request.SetBasicAuth(USERNAME, PASSWORD)
	response, err := client.Do(request)
	if err != nil {
		return nil, fmt.Sprintf("ERROR-%s", err)
	} else {
		defer response.Body.Close()
		contents, err := ioutil.ReadAll(response.Body)
		if err != nil {
			return nil, fmt.Sprintf("ERROR-%s", err)
		}
		return contents, response.Status
	}
    return nil, fmt.Sprintf("ERROR-%s", err)
}
func getRequest(url string) ([]byte, string) {
	return requestREST(GET,url,nil)
}
func deleteRequest(url string)([]byte, string){
	return requestREST(DELETE,url,nil)
}
func putRequest(url string, data []byte)([]byte, string){
	return requestREST(PUT,url,data)
}
func postRequest(url string, data []byte) ([]byte, string){
	return requestREST(POST,url,data)
}
func postMember(key Member) []byte{
	jsonMember, _ := json.Marshal(key)
	return jsonMember
}