I contents of this site to the file at App/data/names.js
directory in my solution: https://raw.githubusercontent.com/dominictarr/random-name/master/names.json
I did it because the array is too big to put in my file where I write my code and initialize a variable with it explicitly. But still, I would like to assign it to the variable I created. I have mind something like this.
var arrayOfNames = readJSonFromFile("path");
Is it possible to achieve?