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
Post a Comment