HTTP observable returns undefined/null
<p>i have created providers page and i am having my post and get request in it</p>

<p>here is my services which returns observable</p>

<pre><code>post(url: string,data:any): Observable&lt;any&gt;{

   return this.http.post(this.configurator.restServerBaseUrl+url,data)
    .map((result:Response)=&gt; {
      result.json()
    })
  }
</code></pre>

<p>here is my component code </p>

<pre><code> submit(){
    this.rest.post('/validateUser',validateUserObj)
    .subscribe((result)=&gt;{
      this.logger.debug("checking data of success " +JSON.stringify(result));

    });
  }
}
</code></pre>

<p>here my result is giving me <strong>undefined</strong></p>

<blockquote>
  <p>in my services if i map like this it works fine <code>.map((result:Response)=&gt;result.json())</code></p>
</blockquote>

<p>if i apply bracket i am getting undefined.</p>

<blockquote>
  <p>can some one help me in understand the observable i have checked in angula.io but i am feeling difficult to understand there</p>
</blockquote>