Jquery form fields to object plugin

I wrote this script as a direct replacement for form2js by Maxim Vasiliev
as I was unable to modify his script to play nicely with input names like test[123][]
 
 input, select and textarea are all supported.
 
 form inputs in the following styles are all supported
 <input name='test' value='ignition' />
 <input name='test[]' value='ignition' />
 <input name='test[member]' value='ignition' />
 <input name='test.member' value='ignition' />
 <input name='test.member[]' value='ignition' />
 <input name='test.member[123]' value='ignition' />
 <input name='test[mixed].member[123]' value='ignition' />
 
 <input name='test.member' value='ignition' />
 and
 <input name='test[member]' value='ignition' />
 will produce the same output
 
 test {
 member: "ignition"
 }
 
 
 usage:
 
 var obj = $(selector).serializeObject({options});
$.post("/url", obj, function(data){});
2015-12-15 17:10:35