title: Getting data from a DynamoDb table into an HTML table using API Gateway
body: <p>I've managed to query a DynamoDb table using Lambda triggered by an API Gateway. Clicking on the API URL gives me this:</p>
  
  <pre><code>{
    "Items": [
      {
        "date": "1522395676041",
        "UUID": "2deed071-f2ad-46f8-b30f-69e2da55d4c9",
        "message": "0941 from John",
        "commentId": "ba6c3749-33ed-11e8-95a6-0f2f6e50e87f",
        "reason": "1",
        "pageId": "0"
      },
      {
        "date": "1522685413383",
        "UUID": "085b71b3-98a9-4155-be19-a6c221b3d60a",
        "message": "0933",
        "commentId": "53c9bb19-3690-11e8-abfb-b5a9138e7fe2",
        "reason": "1",
        "pageId": "0"
      },
      {
        "date": "1522574265688",
        "UUID": "2deed071-f2ad-46f8-b30f-69e2da55d4c9",
        "message": "1117 from John‘s iPhone",
        "commentId": "8a3cc78a-358d-11e8-803c-659d2c124a1d",
        "reason": "1",
        "pageId": "0"
      },
   ],
    "Count": 3,
    "ScannedCount": 3
  }
  </code></pre>
  
  <p>I can't work out how to get these into a simple array so that Javascript can  send it to a table (I am using the Convert JSON To Table library). I've looked at AWS API Gateway templates and JavaScript examples but they don't really help.</p>
  
  <p>Does anyone know of an easier way?</p>
  
  <p>Cheers,</p>
  
  <p>JC</p>