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
You'd probably want to run a few mapping utilities
http.get(url) .map(response => response.json()) .map(response => response.d.results) .map(results => results.map(item => return Object.create(IItem, item))