title: how to assign response json value to typescript variable in angular 4
body: <p>I am new in angular 4. I am trying get a JSON value using <code>http.post</code>.</p>
  
  <p>The response is: <code>{"status":"SUCCESS"}</code> </p>
  
  <p><strong>component</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>onSubmit(value: any) {
    console.log("POST");
    let url = `${this.posts_Url}`;
    this.http.post(url, value)
      .subscribe(resBody =&gt; {
          this.model.authstatus = resBody.json();
          console.log("Values====="+this.model.authstatus);
      });
  }
  </code></pre>
  
  <p>I am getting  <code>Values====={"status":"Failure"}</code> </p>
  
  <p>How do I assign the value like <code>this.model.authstatus = 'Failure'</code></p>