I am currently developing an application that utilizes IndexexDB for local data storage. I am looking for a way to extract and insert large amounts of data from an indexed DB in JSON format. Below is the code snippet illustrating what I have accomplished so far:
var request = store.openCursor();
request.onsuccess = function(evt) {
var cursor = evt.target.result;
if (cursor) {
alert("id: " + cursor.key + " is " + cursor.value.name + " ");
cursor.continue();
}
else {
console.log("No more entries!");
}
};