I am calling an API that returns a JSON Object. I need just the value of the array to map to a Observable . If I call api that just returns the array my service call works.
Latest HttpClient which should be used instead of http has no map method. You should first import it by import { map } from 'rxjs/operators';
Then you should use it this way: