title: ColdFusion Append to Array for JSON
body: <p>I'm trying to convert some code and found myself stuck in the proper way to add to an array that has items in it.  How do I properly add this set of data to the list_items of the array.  My issues is with the line of code before closing the Loop...</p>
  
  <pre><code>&lt;cfset data["item_list"] = [] /&gt;
  &lt;cfloop query="qryShoppingCartContents"&gt;
      &lt;cfset items = {
         "name" = "#qryShoppingCartContents.name#",
         "description" = "#qryShoppingCartContents.short_desc#",
         "quantity" = "#myqty#",
         "price" = "$#numberformat(qryShoppingCartContents.retail_price)#"
       } /&gt;
  
       &lt;cfset arrayAppend(item_list, items) /&gt;
  &lt;/cfloop&gt;
  </code></pre>