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

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -