@sdetweil , thanx, missed that.
Now that this part is running the JSON data is fetched. But when I trying to show the data I get an error:
Uncaught SyntaxError: Unexpected number
This error is created by the zero in the line:
WoonplaatsCell.innerHTML = MWB.0.plaats;
var MWB = this.MWB;
// creating the tablerows
var WoonplaatsRow = document.createElement("tr");
WoonplaatsRow.className = "woonplaats-row";
var WoonplaatsCell = document.createElement("td");
WoonplaatsCell.className = "small";
WoonplaatsCell.innerHTML = MWB.0.plaats;
WoonplaatsRow.appendChild(WoonplaatsCell);
table.appendChild(WoonplaatsRow);
The problem seems that I cannot use the 0 in the command.
This is the JSON result
object{1}
liveweer[1]
0{49}
alarm: "0"
d0neerslag: "4"
d0tmax: "12"
plaats: "Amsterdam"
...
I used a JSON checker and it says that it’s valid JSON.
How do I display the data from this result, if I cannot use the 0?