Crear un archivo de descarga de la URL de blob
// 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