Set content type of api response to JSON.