title: How do I consume Google API JSON data specifically Google Product
body: <p>I am having issues parsing the data I receive back from a Query for products in Google Product . If I run a query similar to...</p>
  
  <pre><code>curl --header "Authorization:GoogleLogin Auth=&lt;AuthKey&gt;" --header "Content-Type:application/atom+xml" https://content.googleapis.com/content/v1/8076653/items/products/generic?alt=json
  </code></pre>
  
  <p>This I receive a JSON(ish?) document, similar to the following </p>
  
  <pre><code>{
    "version":"1.0",
    "encoding":"UTF-8",
    "feed":{
    ...
    }
  }
  </code></pre>
  
  <p>but when I run the following</p>
  
  <pre><code>res.on('end', function() {
    console.log(res.body.feed);
    mainRes.send(res.body);
  });
  </code></pre>
  
  <p>The console shows undefined.</p>