I have this Json object on JavaScript:
var case= {
description: $("#a").val(),
start: document.getElementById("b").textContent,
end: document.getElementById("c").textContent,
frequency: $("#d").val(),
deployment: $("#e").val(),
}
mainFile.events.push({"id": Object.keys(manifest.events).length, case});
localStorage.setItem('LocalStor', JSON.stringify(mainFile));
Every time I run this function I add/push a new object the the mainFile
object and store it in the local storage.
I can view the whole object from console and it is working, but what I want is to display it on a new tab of the browser, just like opening a JSON file on the browser.