Change `arrayLimit` default to 0
Author: yanickrochonCreated Aug 7, 2015Updated Jul 7, 2024
Labelsfeature requestsemver-major: breaking changeparse
Here are two tests :
var req = 'items[20][id]=1';
console.log(JSON.stringify(Qs.parse(req), null, 2));
// {
// "items": [
// {
// "id": "1"
// }
// ]
// }var req = 'items[21][id]=1';
console.log(JSON.stringify(Qs.parse(req), null, 2));
// {
// "items": {
// "21": {
// "id": "1"
// }
// }
// }... why?
Source: ljharb/qs