title: Handling express response
body: <p>node js:   </p>
  
  <pre><code>res.json({url: "http://www.google.co.uk"}); 
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>http.open("post", server.authurl,true);
  http.setRequestHeader("Content-type", "application/x-www-form- 
  urlencoded");
  http.send(parameters);
  console.log(JSON.parse(http.response.body).url
  </code></pre>
  
  <p>Returns syntax error, not sure how to fix this and access the url correctly</p>
  
  <pre><code>console.log(JSON.parse(http.response).url)
  </code></pre>
  
  <p>Returns unexpected end of JSON input</p>