function setup() {
createCanvas(400, 400);
let url=‘http://api.open-notify.org/iss-now.json’;
loadJSON(url,drawEarthquakes,‘jsonp’);
}
function draw() {
background(220);
}
function drawEarthquakes(earthquakes){
print(earthquakes);
}
error message:> p5.js says: It looks like there was a problem loading your json. Try checking if the file path [http://api.open-notify.org/iss-now.json] is correct, or running a local server.[Local server · processing/p5.js Wiki · GitHub]
I have seen that the path name is correct
can someone suggest whr I am going wrong and how to work it out
I have seen a similar question but was not able to follow the discussion
So srry fr the inconvenience
<>