Convert Go func to http.HandleFunc that handle json request and response json
github.com