0
How to call JSON info?
I'm trying to call some information in a json object in a separate file. Can y'all give me the correct syntax to do so?
7 Réponses
+ 2
However you could use ajax to retrieve the data.
+ 2
I built a sample code on reli.it, please check out this code, to demo Ajax fetch function retrieves a local data json file.
https://repl.it/@cv1r2d3/ajex-fetch-local-json-file
https://code.sololearn.com/WrSnBsjfFCqp/?ref=app
+ 1
Local JavaScript cannot load any local file contents.
+ 1
Due to security reasons, JavaScript codes which could be sent from external web servers, are not allow to read or write local resources in order to protect the local system.
0
Could you reiterate
0
Oh okay
0
I'll try