title: Converting data in .js file to json
body: <p>So I'm currently working on a project that involves referencing the entire Pokemon pokedex, and as I was looking around for sources, I realized that Pokemon Showdown is open source and as a result, there's a full pokedex in the repository. However, when I opened up the file that contains the <a href="https://github.com/Zarel/Pokemon-Showdown/blob/master/data/pokedex.js" rel="nofollow noreferrer">pokedex</a> I found that it's not set up as a json file, but as something else entirely.</p>
  
  <p>So, here are my questions:<br>
  1: What exactly is the data stored as? An array of objects?<br>
  2: How can I either convert the data to JSON or reference it as I would JSON(using key names)</p>