angular convert response to json

Solutions on MaxInterview for angular convert response to json by the best coders in the world

showing results for - "angular convert response to json"
Miguel
10 Jul 2020
1getSomeDataFromSomeAPI(){
2  //res.json() does the trick, .json() function belongs to Response Object
3  return this.http.get("https://someApi.com/api/getData")
4  .map(res => res.json()).toPromise();
5}
6