title: Parse JSON with Ionic 2 and typescript
body: <p>I'm trying to parse some JSON data from randomuser.me api, to do that a found some tutorials online but aparrently something have change recently in Ionic 2, because none of them are working.</p>
  
  <p>Here is what i have:</p>
  
  <pre><code>import {Component} from '@angular/core';
  import {NavController} from 'ionic-angular';
  import {Http} from '@angular/http';
  
  
  @Component({
    templateUrl: 'build/pages/home/home.html'
  })
  export class HomePage {
    items : any;
    //http://api.randomuser.me/?results=10
  
    constructor(private navController: NavController, private http: Http) {
  
      this.http.get("http://api.randomuser.me/?results=10").subscribe(data =&gt; {
          console.log("Got data");
          this.items=JSON.parse(data._body).results; // this is the error
          console.log(this.items);
      });
    }
  
    itemClicked(event, item) {
      console.log(item.title);
      //console.log(event);
    }
  
  
  }
  </code></pre>
  
  <p>In the terminal i can see the error:
  <strong>data._body - Property '_body' is private and only accessible within class 'Response'.</strong></p>
  
  <p>What can i do?</p>