title: Convert form into SearializeObject
body: <p>I need to get the generate the array from the keys.</p>
  
  <p>In the below field the pattern returns keys name-field, row, "".</p>
  
  <p>How to generate the multidimensional array and save the value?</p>
  
  <pre><code> var fixed = [], 
   var pattern = { key: /[a-z0-9_-]+|(?=\[\])/gi }
   var field = { name: "name-field1[row1][]",value :"10" }
   var keys = field .name.match(patterns.key), k;
   //returns name-field, row, ""
   while ((k = keys.pop()) !== undefined) {
   if(fixed[key] === undefined) {
      fixed[key] == []
   }                       
    var obj = []
    obj[k] = pair.value;      
    fixed[key] = obj;// I am doing wrong saving in the "row" key I need save in "col"
   }
  </code></pre>
  
  <p>output:</p>
  
  <p>{ name-field : row1 { [10 , 20 ,30],row2:[20,30,40] } }</p>