title: JSON Parse error: Unrecognized token'<' - react-native
body: <p>"JSON Parse error: Unrecognized token'&lt;'" Error is showing while hitting the api.
  Code is attached below
  Note* : Response is in the JSON format.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>fetch("http:/example.com", {method: "POST",
    body: JSON.stringify(
      {
        uname: uname,
        password: password      
      }
    )
  })
  .then((response) =&gt; response.json())
  .then((responseData) =&gt; {
    AlertIOS.alert(
        "POST Response",
        "Response Body -&gt; " + JSON.stringify(responseData.body)
    )
  }).done();
         this.props.navigation.navigate("Home")
     };</code></pre>
  </div>
  </div>
  </p>
  
  <p>Please help.
  Thanks,</p>