Computer Science, asked by hackxox, 1 year ago

How to read values from a json file in Javascript

Answers

Answered by Anonymous
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
Similar questions