correcting json response type