replacement for http json response