handle json response for location