javascript - bug in nested arrays in a url get string -


basically want query string ?foo%5b%5bbar%5d%5d=whizbang give me result looks this:

{ 'foo' : { '[bar]' : 'whizbang' } } 

i'm using rails @ moment, , instead of '[bar]' i'm getting 'bar' (ie [] stripped out). tried in php comparison, has '[bar' (rstripped of ]) seems wrong me also.

i trying work out if bug need log rails.

i'm using jquery.ajax send object looks rails.

if you're trying formulate params in javascript , have access jquery, can use $.param:

$.param({ 'foo' : { '[bar]' : 'whizbang' } }) // => foo%5b%5bbar%5d%5d=whizbang 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -