JavaScript / JQuery array/object problem
<pre><code>$.fn.fieldValues = function(successful)
{
 var values = {};
 this.each(function()
 {
  if(strstr(this.name, '[]', true))
  {
   var tmp = this.name.replace(/\[\]/, '');
   if(typeof values[tmp] == 'undefined') values[tmp] = {};
   var x = 0;
   while(typeof values[tmp][x] != 'undefined') x++;
   values[tmp][x] = $(this).val();
  }
  else values[this.name] = $(this).val();
 });
 return values;
}
</code></pre>

<p>problem is I get this array on php side:</p>

<pre><code>array(['tagCloud'] =&gt; '[object Object]', ['status'] =&gt; 'Active'.....)
</code></pre>

<p>Why is tagCloud an object, how can I post a whole associative array to php?</p>
