title: Unexpected end of JSON input error in Post request on api using access token in react-native
body: <p>I am posting the details of user in api ,using the access token in header which i got in sign up but getting this error --> Unexpected end of JSON input. My code is</p>
  
  <pre><code>     postNameToApi() 
          {
  
          console.log("inside post api");
          fetch('https://MyPostApi', {
            method: 'POST',
            headers: {
                    'Accept': 'application/json',
                    'Content-Type': 'application/json',
                    'Authorization':'Bearer'+'Qwjubq41KAWw9uI2NMj4TPQ9t24PxC'
                  },
  
  
            body: JSON.stringify({
            dob:'1992-04-18',
            gender: 'femanino',
            is_professional:true,
            is_referee:false
  
          })
             }).then((response) =&gt; response.json())
               .then((responseData) =&gt; {
                                  console.log("inside responsejson");
                                  console.log('response:',responseData);
  
                         //this.setState({response:responseData});
           }).done();
       }
  </code></pre>