title: How to specify value for key in JSON map (in JavaScript)?
body: <p>I probably am using the wrong terminology here but this is what I'm trying to do. I want to create a map with a value for each key and a value for each key's object. So using this code:</p>
  
  <pre><code>var myMap = {};
  var keyVal = "abc";
  var objVal = "123";
  myMap.keyVal = objVal;
  </code></pre>
  
  <p>Now what I want to return is a JSON object that looks like <code>{"abc":"123"}</code> but instead it returns <code>{"keyVal":"123"}</code>. How can I get it to use the actual variable contents for the key instead of the variable name? (or really I guess it's not using the variable at all, just treating 'keyVal' as the key name)</p>