Parse json response