How to read values from a json file in Javascript
Answers
Answered by
1
You cannot make a AJAX call to a local resource as the request is made using HTTP.
A workaround is to run a local webserver, serve up the file and make the AJAX call to localhost.
In terms of helping you write code to read JSON, you should read the documentation
I hope this will help you
if not then comment me
A workaround is to run a local webserver, serve up the file and make the AJAX call to localhost.
In terms of helping you write code to read JSON, you should read the documentation
I hope this will help you
if not then comment me
Similar questions