Open silkcom opened 10 years ago
anything blocking this from being merged? I'd really like to remove the hacks that I have to add to my html
Will check this in about 4 hours. I'm on the move right now.
Has this been merged in? It still passes build tests right?
Just stumbled upon this problem too that number-like keys are lost when between brackets. So, any news on this?
updated so that objects are default unless [] are empty and updated tests to verify it works
Basically the point of this is to make it work more like PHP and Rails.
Items[1]=on&items[4]=on
will now become: { items: { 1: on, 4: on } }
rather than { items: [on, on] }
Updated tests to make sure that it didn't mess up even when [] and [99999] was used.
items[]=on&items[]=on will still equal { items: [on, on] }