title: Reading values from JSON in Node.js in GET request
body: <p>I need to pull the Indication value from the following</p>
  
  <pre><code>{
      "records": [{
          "id": "recBgV3VDiJeMkcwo",
          "fields": {
              "DrugName": "azatadine",
              "nameapi": ["recBgV3VDiJeMkcwo"],
              "Indication": "For the relief of the symptoms of upper respiratory mucosal congestion in perennial and allergic rhinitis, and for the relief of nasal congestion and eustachian t.b. congestion.",
              "lookup": ["azatadine"],
              "drugID": "recBgV3VDiJeMkcwo"
          },
          "createdTime": "2018-11-09T19:38:24.000Z"
      }]
   }
  </code></pre>
  
  <p>When I try to do 
  <code>response.records[0].fields.Indication</code>
  I get the error 
  <code>Cannot read property 'fields' of undefined</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>function httpGet() {
  
  return new Promise(((resolve, reject) =&gt; {
  
  var options = {
  
  host: 'api.airtable.com',
  
  port: 443,
  
  path: '/v0/appYqfJ3Rt2F0sRGn/Database?filterByFormula=(DrugName=%27azatadine%27)',
  
  method: 'GET',
  
  headers: {
  
  Authorization: 'Bearer key123456789'
  
  }
  
  };
  
  const request = https.request(options, (response) =&gt; {
  
  response.setEncoding('utf8');
  
  let returnData = '';
  
  response.on('data', (chunk) =&gt; {
  
  returnData += chunk;
  
  });
  
  response.on('end', () =&gt; {
  
  resolve(returnData);
  
  });
  
  response.on('error', (error) =&gt; {
  
  reject(error);
  
  });
  
  });
  
  request.end();
  
  }));
  
  }
  
  
  
  const UserReplyIntent_Handler = {
  
  canHandle(handlerInput) {
  
  const request = handlerInput.requestEnvelope.request;
  
  return request.type === 'IntentRequest' &amp;&amp; request.intent.name === 'UserReplyIntent' ;
  
  },
  
  async handle(handlerInput) {
  
  const response = await httpGet();
  
  console.log(response);
  
  return handlerInput.responseBuilder
  
  .speak("Okay. Here we go" + response.records[0].fields.Indication)
  
  .reprompt("say again")
  
  .getResponse();
  
  },
  
  };
  
  </code></pre>