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, 1330 Views

For javascript load json file from desktop, you might wanna check out JSON Server (https://github.com/typicode/json-server).

It’s super lightweight and lets you mock a REST API with your JSON file. Just install it, run it, and you can fetch your data like it’s a real backend.

Also, if you’re using VS Code, the Live Server extension is a lifesaver for this kinda thing. No config needed, just right-click and open with Live Server.

Messages In This Thread



Users browsing this thread: 1 Guest(s)