How to read external json file from local directory in javascript | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

How to read external json file from local directory in javascript

11th Feb 2023, 9:49 AM
Samuel
Samuel - avatar
2 Respostas
+ 2
On sololearn you can't access local directory, you need to place it on cloud and fetch data from url. On pc you can, here are few ways how to do it: https://www.freecodecamp.org/news/how-to-read-json-file-in-javascript/amp/
11th Feb 2023, 10:22 AM
PanicS
PanicS - avatar
0
PanicS 10Q
11th Feb 2023, 10:30 AM
Samuel
Samuel - avatar