How can I save notes with localstorage and JSON?

Please don’t cross-post. You already asked this in a different forum, and I think the answer I gave you there will provide everything you’re looking for.