loading...

re: How can I read a local JSON file in HTML/JavaScript? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Using fetch locally will do to, just pass the file location of the json file and it will work exactly as if you're fetching from an actual api . as...
 

TYSM! I appreciate this, and surprisingly it is the method Rishi Kumar Chawda showed (w/o the promises), and as I just asked them, to make this easier, is there a way to let the data break (escape) the scope of the promise?
Thanks!
Cheers!

code of conduct - report abuse