So I have this code creating a game in p5.js and I was planning on sending it to a server or something so that people playing it can save data. I have tried using saveJSON() within p5.js but that only downloads the relevant data which isn't very useful in this case. I then tried using JS cookies;
document.cookie = "systems =" + json.systems + "; expires=Thu, 18 Dec 2020 12:00:00 UTC";
but they all just end up [object,Object] so again useless. Wanted to know if anyone had any solutions that would allow the user to save the game either client side or server side that wont require them to upload a file?