First, check the location of the JSON file.
If dat.json is in the same folder as the HTML file, the fetch path should be './dat.json'. If it's in a subfolder, the path should reflect that, e.g., './data/dat.json'.