How to set an object param name with a string in JavaScript?
<p>I'm writing a plugin for jQuery where I need to send a little piece of data to the server, but I need to set the var name of the json object I send:</p>

<pre><code>var params = {name:'var_name'}
$.post('page.php', {params.name:'the value'}, function () { /* etc. */ });
</code></pre>

<p>how can I do it?</p>
