updating json response on GET requests