func ReturnJSON(next http.Handler) http.Handler {
	return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
		rw.Header().Add("Content-Type", "application/json")
		next.ServeHTTP(rw, r)
	})
}
// Middleware for setting content-type to json
Middleware for setting content-type to json
// Middleware for setting content - type to json
func ReturnJSON(next http.Handler) http.Handler {
	return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
		rw.Header().Add("Content-Type", "application/json")
		next.ServeHTTP(rw, r)
	})
}
func ReturnJSON ( next http . Handler ) http . Handler { return http . HandlerFunc ( func ( rw http . ResponseWriter , r * http . Request ) { rw . Header ( ) . Add ( " " , " " ) next . ServeHTTP ( rw , r ) } ) }
Middleware for setting content-type to json
Middleware for setting content - type to json