So is it possible to subscribe to more than one json variables?
this.http.get(this.api_url + "preference")
.map(response => response.json())
.subscribe(res => this.limit = res.limit, res => this.sources = res.sources);
In this example, the sources is an array of strings. If you do it like this, only limit will be set.
my json:
{ "sources":["examplePage"],
"limit":5
}