I read the database with php and pack the contents into a Json:
$lbtb_json = json_encode($lbtbs);
In Javascript I get the values. When I with
this.lbtbdata = lbtb_json;
window.console.log(this.lbtbdata);
Outputting the data, I get the following:
If I do the following in Javascript:
this.lbtbdata = lbtb_json;
this.events = JSON.parse(this.lbtbdata);
window.console.log(this.events);
I get the following:
I would like to be able to output the following:
this.events[‘id’] or
this.events[‘date’] and so on.
Why don’t I get any more values after parsing? How do I get the values to be output individually, as described above?