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
Very simple. Rename your json file to ".js" instead ".json".
So follow your code normally.