P5 loadJSON from wordpress problem

Hi

Can someone see why I cant load this data to my console? I just get a “problem loading your JSON”

Thank you

function setup(){
createCanvas(200,200);
  loadJSON('http://north-berlin.com/wp-json/wp/v2/tags/', gotData,'jsonp');

}

function gotData(data){
  println(data);
}

function draw(){
  background (0);
}```
1 Like

this works:

function setup(){
createCanvas(200,200);
var data = loadJSON('https://north-berlin.com/wp-json/wp/v2/tags/?per_page=100', gotData);

}

function gotData(data){
  print(data);
}

function draw(){
  background (0);
}
1 Like