I have a problem with reading the JSON file that I've loaded into my Javascript code. Here's my code -- shown below
fetch("gach-trong-nha.json").then(response =>{return response.json();}).then(data => {console.log(data);});
The output is susposed to show the JSON file's content, but mine doesn't show anything, not even an error. The "response.json()" doesn't seem to work in my code. How can I get the file's content in this case?