I have been working with a Json file and javascript. While opening the file I recieved this error
SyntaxError: Unexpected token e in JSON at position 0
After Some research I found out that my JSON file's content-type is actually set to html. But now I don't know how to change the content-type of my file to json. enter image description here
function generateRow(){
console.log("WORKING");
fetch('./addplaylist.json')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.log(error));
}