fixed json response to correct format