I want to export a few items from my localStorage to save it externally but in a format so that I can import it again later.
My attempt was to write executable code that
Export
copy(JSON.stringify(JSON.stringify(localStorage)));
Import
var data = JSON.parse(/*previously copied stringified JSON from clipboard*/); Object.keys(data).forEach(function (k) { localStorage.setItem(k, data[k]); });