title: Jquery & javascript - function result, as property name
body: <p>I'd like to get an input name, as a property name, using jquery.</p>
  
  <p>The html</p>
  
  <pre><code>&lt;input name="data[First][Second]" /&gt;
  </code></pre>
  
  <p>The script</p>
  
  <pre><code>$.post(
     '/url', 
     {
        $("input").prop("name"): $("input").val()
     }
  );
  </code></pre>
  
  <p>how can it be done (directly)?</p>