I\'ve created a service in Angular 4 and I\'m fetching data via REST/JSON (new to Angular) using this code:
Interface
export interface IItem { Id
Youll want to use the map operator:
@Injectable() export class ItemTest { constructor(private _http: HttpClient) {} getItems(): Observable { return this._http.get('url').map((data) => data['d']['results']) .do(data => { console.log(data); }) } }