Create the toJSON operator in Angular
Netanel Basal
16110

How about map on the root level:

class CustomHttp extends Http{
public request(url: string | Request, options?: RequestOptionsArgs){
return super.request(url, options)
.map(response => response.json())
.catch((res: Response) => this.catchErrors(res));
}
}
{provide: Http, useClass: CustomHttp}

and then use Http without map to .json(), just subscribe on

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.