Crie um arquivo de download do BLOB URL
// Create Hidden URL in HTML
var a = document.createElement("a");
document.body.appendChild(a);
a.style = "display: none";
// Pass Blob Object
blob = new Blob([json], {type: "octet/stream"}),
url = window.URL.createObjectURL(blob);
// Append Blob and trigger download
a.href = url;
a.download = fileName;
a.click();
window.URL.revokeObjectURL(url);
OussamaDEV