How to create object attribute with name from input id?
<pre><code>&lt;input id="some_id" value="some_value"&gt;
</code></pre>

<p>I need to create <code>{some_id: some_value}</code> (in other words i need to use as name of the attribute value of id) from upper input. </p>

<p>I tried:</p>

<pre><code>jQuery('[name="page-numbers[]"]').map(function () {
  return { jQuery(this).attr('id'): jQuery(this).val()};
}).get();
jQuery('[name="page-numbers[]"]').map(function () {
  return {this.id: this.value};
}).get();
</code></pre>

<p>But every time i get an error near <code>{this.id:</code>. If only call <code>this.id</code> or <code>this.value</code> or same jQuery - result returns.</p>
