res.json() is a not a function in HttpClient Angular 2
问题 I was using Angular Http module before and the method res.json() used to work fine. I have recently tried HttpClient but then the res.json() dosen't seem to work . only using res works can some one tell me what changed has happened in the http client. return this.client.get('https://swapi.co/api/people/1/') .map((res:Response) => { return res.json(); // using maps to filter data returned form the http call this json dosn't work with http client }).map(data => { return data; // using maps of