change the response to json