How can I use JavaScript to load a JSON file from my desktop? or What's the best way to load a JSON f

14 Replies, 1315 Views

Wow, thanks for all the replies! Didn’t expect so many options.

I tried the `python -m http.server` trick and it worked perfectly. Super simple fix for javascript load json file from desktop.

Still curious about the FileReader API though—does it work with Node.js scripts? Or is it strictly for browser JS? Might play around with that next.

Thanks again, y’all are legends!

Messages In This Thread



Users browsing this thread: 1 Guest(s)