title: Variable Key in Key-Value pairs
body: <p>So the code that I have working is something like this:</p>
  
  <pre><code>var name:String = "Cashier";
  var data:String = "Pay";
  
  arr.push({name:tmpName, data:tmpData});
  </code></pre>
  
  <p>name, tmpName, data and tmpData are all variables.
  However this shows up as "name" and "data" being the key instead of "Cashier" and "Pay"</p>
  
  <p>tmpName &amp; tmpData are setting correctly, however.</p>
  
  <p>Any help would be greatly appreciated.</p>