setting content type to json