Set content type to json.