// PatchJSON performs a post call on specific url with the given object.
PatchJSON performs a post call on specific url with the given object.
// PatchJSON performs a post call on specific url with the given object .
func PostJSON(url string, object interface{}) error {
	b := new(bytes.Buffer)
	json.NewEncoder(b).Encode(object)
	_, err := httpClient.Post(fmt.Sprintf("%v%v", rootURL, url), "application/json", b)
	if err != nil {
		return err
	}
	return nil
}
func PostJSON ( url string , object interface { } ) error { b := new ( bytes . Buffer ) json . NewEncoder ( b ) . Encode ( object ) _ , err := httpClient . Post ( fmt . Sprintf ( " " , rootURL , url ) , " " , b ) if err != nil { return err } return nil }
PatchJSON performs a post call on specific url with the given object.
PatchJSON performs a post call on specific url with the given object .