title: Get Data from JSON file using a variable (JS/Discord.js)
body: <p>I was working on my discord bot when suddenly this problem occurred.</p>
  
  <p>Usually, once you link a JSON file, you can get data by doing jsonFile.path to get some form of information.</p>
  
  <p>I ran into a problem where I want to replace path with a variable's value.</p>
  
  <p>Is there anyway that I could do this? In my case I am using a command randomly generate a number, check if that number is currently on the file, add it to the JSON file.</p>