API Json nested


#1

I’m new in ionic and i want to retrieve a api json. Here’s my api json link: https://api.wh.geniussports.com/v1/basketball/competitions/19816/matcheslive?ak=eebd8ae256142ac3fd24bd2003d28782

Below is my loadUser function

loadUser(){
this.http.get(‘https://api.wh.geniussports.com/v1/basketball/competitions/19816/matcheslive?ak=eebd8ae256142ac3fd24bd2003d28782’)

    .map(res => res.json())
    .subscribe(res => {
     this.data = data;
      console.log(data.data);
    }, err => {
      console.log(err);
    });

}

My main goal is i want to log the data[] from my api.