title: jQuery + JSON how to define key from variable
body: <p>I have the following code</p>
  
  <pre><code>$.post(
      "/factory/set",{
           key : value
      },
      function(response) {
  
          });
      }, "json"
  );
  </code></pre>
  
  <p>where</p>
  
  <pre><code>key = "foo"
  value = "bar"
  </code></pre>
  
  <p>but the server always gets "key" and "bar", is there a way to set the key as variable, not string?</p>