title: I am using ionic and getting an error: SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>)
body: <p>This is my Code: </p>
  
  <pre><code>this.http.get('http://localhost/....)
  
        .map((res) =&gt; res.json())
  
        .subscribe((
  
          this.navCtrl.push(OtpPage,{mobileno:this.mobile});
  
        }, (err) =&gt; {
          console.log(err);
        });
  </code></pre>
  
  <p>and getting the following error: </p>
  
  <p>SyntaxError: Unexpected token &lt; in JSON at position 0
      at JSON.parse ()</p>
  
  <p>Anyone can help Please??</p>