sets response content type to json