You are working with the angular-cli?
Netanel Basal

It just work if I add the operator in my service.

export function toJSON<T>(this: Observable<Response>): Observable<PostResponseOf<T>>  {
return any) => <PostResponseOf<T>>extractResponseOf(res));
Observable.prototype.toJSON = toJSON;
One clap, two clap, three clap, forty?

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