I'm currently developing a game in p5.js and I'm looking for a way to allow players to save their game data. I've tried using saveJSON() in p5.js, but it only downloads the relevant data which isn't very helpful in this situation. I also attempted to use JS cookies:
document.cookie = "systems =" + json.systems + "; expires=Thu, 18 Dec 2020 12:00:00 UTC";
However, the data always ends up showing as [object,Object], rendering it useless. Does anyone have any suggestions for saving the game either client-side or server-side without requiring users to upload a file?