converted the response to json format