Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.http.get(url, requestOptions).map(res => res.json()).subscribe(data => {
const blob = new Blob(
[JSON.stringify(data.items, this.replaceForDownload, 1)],
{type: 'application/json'});
saveAs(blob, this.exportFileName);
});
}