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
I had the same issue too and this worked for me try:
this.http.request('http://thecatapi.com/api/images/get?format=html&results_per_page=10'). subscribe((res) => { let resSTR = JSON.stringify(res); let resJSON = JSON.parse(resStr); console.log(resJSON._body); })