Saving & Loading for Hexwave.
Hello! Today we're going to be talking about how Saving & Loading works in Hexwave! If you don't know, Hexwave is my Interactive Film Engine (in C++) that I'm working on as part of my University assignment (and I'll continue to work on after). Hexwave originally used CSV (comma separated values) to save projects, like so: ahhhh,woah!,1 test,testing!,1 teste,testing again,1 Whilst this worked for initial testing, I very quickly realised that it would break if people tried to use commas (I could fix that by using " ", but I wanted to move away from CSV) so I decided I needed to rewrite it to use JSON. I'm very familiar with JSON as I PR Review for D++ (which is a Discord Bot library) so we deal with JSON from Discord's API. It's also extremely common for storing data (if you're not using a database) so it's just the most logical option. If you're not familiar with JSON, it looks something like this : { "testing": {...