func respondwithJSON(w http.ResponseWriter, code int, payload interface{}) {
	response, _ := json.Marshal(payload)
	fmt.Println(payload)
	w.Header().Set("Content-Type", "application/json")
	w.WriteHeader(code)
	w.Write(response)
}
// respondwithJSON write json response format

respondwithJSON write json response format
// respondwithJSON write json response format
func respondwithJSON(w http.ResponseWriter, code int, payload interface{}) {
	response, _ := json.Marshal(payload)
	fmt.Println(payload)
	w.Header().Set("Content-Type", "application/json")
	w.WriteHeader(code)
	w.Write(response)
}
func respondwithJSON ( w http . ResponseWriter , code int , payload interface { } ) { response , _ := json . Marshal ( payload ) fmt . Println ( payload ) w . Header ( ) . Set ( " " , " " ) w . WriteHeader ( code ) w . Write ( response ) }
respondwithJSON write json response format
respondwithJSON write json response format