+ 1

How to read external json file from local directory in javascript

11th Feb 2023, 9:49 AM
Samuel
Samuel - avatar
2 Answers
+ 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