title: AWS Lambda output format - JSON
body: <p>I trying to format my output from a lambda function into JSON. The lambda function queries my Amazon Aurora RDS instance and returns an array of rows in the following format:</p>
  
  <ul>
  <li>[[name,age,town,postcode]]</li>
  </ul>
  
  <p>which gives the an example output:</p>
  
  <ul>
  <li>[["James", 23, "Maidenhead","sl72qw"]]</li>
  </ul>
  
  <p>I understand that mapping templates are designed to translate one format to another but I don't understand how I can take the output above and map in to a JSON format using these mapping templates.</p>
  
  <p>I have checked the documentation and it only covers converting one JSON to another.</p>