title: Argument of type 'Response' is not assignable to parameter of type 'string'
body: <p>I have this project I am working on.
  the idea is to retrieve books from google book API, using angular 4</p>
  
  <p>I am struggling to understand how to read the JSON response, I am still learning Angular.
  I was searching the internet and found this source code on GitHub
  <a href="https://github.com/abhishekramkrishna002/Google-books" rel="noreferrer">google bookstore</a></p>
  
  <p>I am getting the following error</p>
  
  <pre><code>Argument of type 'Response' is not assignable to parameter of type 'string'.
  </code></pre>
  
  <p>for this line</p>
  
  <pre><code>  let bookResponse = JSON.parse(body);
  </code></pre>
  
  <p>I am not sure if I am doing it the correct way.
  appreciate your help</p>
  
  <p>below is my method for send HTTP request.</p>
  
  <pre><code>  getBooks(searchparam: any){
  let par = new HttpParams();
  par.set('q', searchparam);
  
  return this.httpClient.get('https://www.googleapis.com/books/v1/volumes', {
    params : new HttpParams().set('q',searchparam)
  }).map(
    (response: Response) =&gt; {
      let data = response;
  
      return data;
    }
  );
  </code></pre>
  
  <p>}</p>
  
  <p>below is the method to get data from HTTP request and read JSON response</p>
  
  <pre><code>  getBook() {
  
  const dataArrya = this.searchForm.get('param').value;
  
  console.log(dataArrya);
  this.requestService.getBooks(dataArrya)
    .subscribe(
      response  =&gt; {
        this.printData(response)
      //  console.log(this.bookData);
      },
      (error) =&gt; console.log(error)
    ); 
  </code></pre>
  
  <p>}</p>
  
  <pre><code> private printData(res: Response) {
  
  let body = res;
  let books: Array&lt;Book&gt; = new Array&lt;Book&gt;();
  let bookResponse = JSON.parse(body);
  console.log(bookResponse);
  console.dir(bookResponse);
  for (let book of bookResponse.items) {
    books.push({
      title:book.volumeInfo.title,
      subTitle: book.volumeInfo.subTitle,
      categories: book.volumeInfo.categories,
      authors: book.volumeInfo.authors,
      rating: book.volumeInfo.rating,
      pageCount: book.volumeInfo.pageCount,
      image: book.volumeInfo.imageLinks === undefined ? '' : book.volumeInfo.imageLinks.thumbnail,
      description: book.volumeInfo.description,
      isbn: book.volumeInfo.industryIdentifiers,
      previewLink: book.volumeInfo.previewLink
    });
  }
  
  }
  </code></pre>