title: Convert curl GET to javascript fetch
body: <p>I am able to successfully retrieve an object from parse using command below:</p>
  
  <pre><code>curl -X GET \
  -H "X-Parse-Application-Id:1231231231" \
  -H "X-Parse-REST-API-Key: 131231231" \
  -G \
  --data-urlencode 'where={"uid":"12312312"}' \
  https://api.parse.com/1/classes/birthday`
  </code></pre>
  
  <p>But I'm struggling converting it to javascript, using the code below I will get response with a <em>status</em> of <code>200</code>. I assume error is converting <em>data-urlencode</em> to <em>data</em>:</p>
  
  <pre><code>var getObject = function {
      var url = "https://api.parse.com";
      url += '/1/classes/birthday';
  
      fetch(url, {
          method: 'GET',
          headers: {
              'Accept': 'application/json',
              'X-Parse-Application-Id': '12122',
              'X-Parse-REST-API-Key': '12121',
              'Content-Type': 'application/json',
          },
          data: '{"where":{"uid":"12312312"}}'
  
      })
      .then(function(request, results) {
          console.log(request)
          console.log(results)
      })
  }
  </code></pre>
  
  <p>Thanks!</p>