title: Can't parse valid JSON - Unexpected token ( in JSON at position 0
body: <p>I'm stuck in a problem that doesn't make ANY sense. I'm using the request module to do a request for other server that I own, and this server is clearly answering with the following JSON:</p>
  
  <pre><code>{"bucket":"name-of-my-bucket","prefix":"cb012af0-ac7a-414b-b474-a9c71cbec811/"}
  </code></pre>
  
  <p>If I log the type of the response, will be a string:</p>
  
  <pre><code>console.log(response.body) // string
  </code></pre>
  
  <p>But I can't parse to a javascript object, because it will throw the following error:</p>
  
  <pre><code>Unexpected token ( in JSON at position 0
  </code></pre>
  
  <p>I'm stuck on this for the last 3 hours, I already tried everything, including answering with a empty JSON, but the error persists. Do someone have any idea what it is?</p>
  
  <pre><code>const request = require('request-promise');
  
  request.post('http://...', {
    formData: {
      // data here
    }
  }).then(response =&gt; {
    // request.body is application/json
    console.log(response.body); // {"bucket":"name-of-my-bucket","prefix":"cb012af0-ac7a-414b-b474-a9c71cbec811/"}
    const data = JSON.parse(response.body);
  }).catch(console.error);
  </code></pre>