This is along the lines of what I need to accomplish. Each element of the array is an object itself which will have multiple fields one of which will be a file (i'm leaving out the file for this example as i don't think it's causing the problem).
> qs.parse('project[tasks][][name]=foo&project[tasks][][desc]=bar')
Returns this:
{ project: { tasks: [ 'foo', 'bar' ] } }
What I need is this
{ project: { tasks: [{name: 'foo', desc: 'bar'}]}
And obviously I would expect that it could handle multiple elements in the array.
When I use explicite indexes in the array I get this
> qs.parse('project[tasks][0][name]=foo&project[tasks][0][desc]=bar')
{ project: { tasks: [ [Object] ] } }
Which also looks broken since the Object isn't printing properly. This also wouldn't help because I don't know the number of elements I will have in my array. It needs to be dynamic.