I wrote the following code in Angular 2:
this.http.request(\'http://thecatapi.com/api/images/get?format=html&results_per_page=10\'). subscribe((re
.subscribe(data => { console.log(data); let body:string = JSON.parse(data['_body']);`