You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's because by default qs is creating a sparse array and placing the members in the correct indices, it then compacts that array preserving order, thus:
Qs.parse('obj[2]=value2&obj[1]=value1');
will yield
{obj: ['value1','value2']}
You can force creating an object by setting the arrayLimit option to 0:
Heys guys.
When I have a input like:
I get the expected array value
But when the input doesn't start with a zero based index, for instance:
I would expect a return value such as:
But I still get the same result as before:
Reference: expressjs/body-parser#40
The text was updated successfully, but these errors were encountered: