fixed json response parsing