close: true })
      });
    }

    var jsonData = "{}";
    var error_div = document.getElementById("error-div");
    var importTextField = document.getElementById("import-data");

    function importData() {
      event.preventDefault();
      error_div.setAttribute("hidden", "");

      let el = document.getElementById("import-file");
      if (el != null && el.files.length == 1) {
        let file = el.files[0];
        if (file != null && file.type === "application/json") {
          let reader = new F