title: Can print out an object, but cannot access its values in JS
body: <p>I know this will be a very stupid question, but I've been pulling my hair out trying to figure this out. I'm getting the following response back from an API I'm using:</p>
  
  <pre><code>{
    "item_id": "51c3d78797c3e6d8d3b546cf",
    "item_name": "Cola, Cherry",
    "brand_id": "51db3801176fe9790a89ae0b",
    "brand_name": "Coke",
    "item_description": "Cherry",
    "updated_at": "2013-07-09T00:00:46.000Z",
    "nf_ingredient_statement": "Carbonated Water, High Fructose Corn Syrup and/or Sucrose, Caramel Color, Phosphoric Acid, Natural Flavors, Caffeine.",
    "nf_calories": 100,
    "nf_calories_from_fat": 0,
    "nf_total_fat": 0,
    "nf_saturated_fat": null,
    "nf_cholesterol": null,
    "nf_sodium": 25,
    "nf_total_carbohydrate": 28,
    "nf_dietary_fiber": null,
    "nf_sugars": 28,
    "nf_protein": 0,
    "nf_vitamin_a_dv": 0,
    "nf_vitamin_c_dv": 0,
    "nf_calcium_dv": 0,
    "nf_iron_dv": 0,
    "nf_servings_per_container": 6,
    "nf_serving_size_qty": 8,
    "nf_serving_size_unit": "fl oz",
  }
  </code></pre>
  
  <p>And this is the code that I'm trying to run:</p>
  
  <pre><code>var rp = require('request-promise');
  
  module.exports = {
   getIngredients: function(req, callback) {
   rp({
    method: 'GET',
    uri: `https://api.nutritionix.com/v1_1/item?upc=${req.body.upc}&amp;appId=${process.env.NUTRITIONIX_APP_ID}&amp;appKey=${process.env.NUTRITIONIX_APPP_KEY}`
   }).then((data) =&gt; {
  
    console.log(`Talked to NutritionixAPI, result was: ${data}`);
    var ingredients = data.nf_ingredient_statement.split(',');
  
    console.log(`Ingredients split from the data are: ${ingredients}`);
  
    return callback(ingredients);
  
    }).catch((err) =&gt; {
     console.log(`Error occured in NutritionixAPI, ${err}`)
     return callback(Object.assign({}, err, { error: true }));
    });
   }
  }
  </code></pre>
  
  <p>What I'm trying to figure out is why <code>data</code> gets printed to the console properly, but as soon as I try to access any value inside, I get the error of it being <code>undefined</code>. I've tried other values in the JSON as well, so I would very much appreciate the help!</p>
  
  <p><strong>EDIT:</strong> I want to clarify what the question is about, it's not about the callback and async calls because those work perfectly. My issue is specifically with <code>var ingredients = data.nf_ingredient_statement.split(',');</code> where <code>nf_ingredient_statement</code> is undefined even though obviously it isn't.</p>