<p dir="auto">Example <a href="https://angular.io/docs/ts/latest/api/http/Http-class.html" rel="nofollow">of Http class on angular.io API</a> calls Observable.map() which doesn't work because RxJs operators aren't included by default and you have to import them manually.<br>
The same thing is described also here <a href="https://github.com/angular/angular/issues/5632" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/5632/hovercard">http.get(..).map function is not working with alpha 48</a>.</p>
<p dir="auto">since I updated to alpha 48, http.get(...).map is no longer working.</p>
<p dir="auto"><code class="notranslate">EXCEPTION: TypeError: json.map is not a function in [null]</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Injectable()
export class WPService implements IWPService {
    baseURL: string = 'http://localhost/wptest/api';
    http: Http;
    constructor(http: Http) {
        this.http = http;
    }
    GetPosts() {
        var query = this.baseURL + '/get_posts/';
        return new JsonObject(this.http.get(query));
    }
}

@Injectable()
export class JsonObject {
    constructor(json: Observable&lt;any&gt;) {
        json.map(res =&gt; res.json()).map(data =&gt; {          // &lt;= 
            for (var entry in data) {
                if (data.hasOwnProperty(entry)) {
                    this[entry] = data[entry];
                }
            }
        }).subscribe();
    }
}"><pre class="notranslate"><code class="notranslate">@Injectable()
export class WPService implements IWPService {
    baseURL: string = 'http://localhost/wptest/api';
    http: Http;
    constructor(http: Http) {
        this.http = http;
    }
    GetPosts() {
        var query = this.baseURL + '/get_posts/';
        return new JsonObject(this.http.get(query));
    }
}

@Injectable()
export class JsonObject {
    constructor(json: Observable&lt;any&gt;) {
        json.map(res =&gt; res.json()).map(data =&gt; {          // &lt;= 
            for (var entry in data) {
                if (data.hasOwnProperty(entry)) {
                    this[entry] = data[entry];
                }
            }
        }).subscribe();
    }
}
</code></pre></div>
<p dir="auto">when I downgraded to alpha 47, .map worked again. maybe it has something to do with the integrated rxjs</p>