I have saved a JSON file in my local system and created a JavaScript file in order to read the JSON file and print data out. Here is the JSON file:
{"res
Using the Fetch API is the easiest solution:
fetch("test.json") .then(response => response.json()) .then(json => console.log(json));
It works perfect in Firefox, but in Chrome you have to customize security setting.