Closed yadutaf closed 12 years ago
When Rails ActionController parses URL parameters, it expects arrays to be encoded without indices:
qs.stringify({a: [1, 2, 3]}) => a[]=1&a[]=2&a[]=3
Is there any way we can bring this behavior back as an option to stringify()
?
When stringifying this data structure,
one gets
As you can notice, there is an ambiguity that prevents the parser from building the data-structure back. When generated this way
Then, everything is alright again. Here is a tentative to fix it.