title: How to convert JSON value to string in angular 4?
body: <p>I have a json object like this:
  <code>{path: "images/125/17062017/home.jpg"}</code>.It's coming from rest api. 
  I want to get this path <code>'images/125/17062017/home.jpg'</code>. And I need
  to store that path in string variable. I tried like this.
  <code>JSON.parse(response).path</code>, <code>response.path</code>. But these ways are not working.</p>
  
  <pre><code> fileChange(event: any) {
      const fileList: FileList = event.target.files;
      if(fileList.length &gt; 0) {
       let file: File = fileList[0];
       this.fileUploadService.saveOwnImageFile(file)
        .subscribe( (response: any) =&gt;{
            console.log(response);   // response = {path:'images/125/17062017/home.jpg'}
            let value = JSON.parse(response);  // getting error here
            console.log(value);
        });
       }
  }
  </code></pre>