working backend for json response