I'm building a site that will serve as a database for a mobile game. The game has several items which will be in the database, that have names that contain apostrophes. This is of course no problem when those items are the values of an object property, but sometimes I need them to be an object property itself, I'm wondering what would be a good way to handle this?
I have a feeling I should convert the DB to JSON, but I'm quite new to this kind of thing and haven't ventured far enough out yet to try that, but would love to hear your opinions.
In addition to apostrophes, many items have spaces in the names("Chieftain's Blade", for example) and right now I'm just using an underscore for a space, with plans on using Regex to replace the _ with a blank space when I need to output that object to the DOM. I thought I could maybe do the same with the apostrophe, where I could use some other symbol and then replace it with Regex, but is there a better way?
My primary question is about the apostrophe, but I'd really appreciate some overall guidance in general about how to organize a database that will contain around 1000 objects, each with around 10-15 properties each. Should I just leave it in my JS file or is there a better solution?