I keep having an error message and the JSON file is an array, what is incorrect in the code below?
fetch("products.json")
.then(response => response.json())
.then(json => console.log(json));
let parsed;
try {
parsed = JSON.parse(json);
console.log('JSON array parsed successfully')
} catch (err) {
console.log('ERROR..')
}
console.log(parsed)