So I am trying to make a quote system for a chat bot, and I'm having trouble with storing them. I have decided to move away from using a database because of how small scale it is, but I want to be able to constantly add to the file, is there any way I am able to find how many "variables" already in the file? My current file would be setup like this:
{
"quote1":"texthere",
"quote2":"texthere",
"quote3":"texthere",
"quote4":"texthere"
}
Is there a possible way I am able to figure out how many quotes there are in the file? I am programming in javascript.