macek/jquery-serialize-object

Make array for single item/value of input box.

HiCodin opened this issue · 1 comments

HI,
Is there any way to make a single entry/value of input box to an array ? Right now, it is returning as a string.

macek commented
<input name="single[0]" value="foo">

will encode as

{ single: [ "foo" ] }