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


If you're using a bundler like Parcel, I believe you can simply use the CommonJS syntax to require("myfile.json") it. Unsure if this is exactly what you're looking for, but hope it helps!


No, sorry, but thanks for your contribution, it means a lot!

code of conduct - report abuse