title: How to retrieve specific object from a getItem dynamoDB (JavaScript)?
body: <p>getting an item from my aws database. 'test2' from below prints correctly as an item in my console. But I want to get a attribute/variable from it in the item, and return it as var test. How would I do that? For example if i wanted to get the attribute name 'problem' and return it?</p>
  
  <pre><code>var test;
  
  ddb.getItem(param, function(err, data1) {
    if (err) {
      console.log("Error", err);
    } else {
        var test2 = JSON.stringify(data1);
  
      console.log("Get Success",  test2);
      test = JSON.stringify(data1, undefined, 1);
  
    }
  });
  speechOutput = `Ok ${test}. Thanks, I have reported this. Do you have anything else to report?`;
  
      callback(sessionAttributes,
           buildSpeechletResponse(cardTitle, speechOutput, repromptText, shouldEndSession));
  </code></pre>