Open michaelrog opened 1 year ago
I can send a fix if the maintainer is okay with this.
I can send a fix if the maintainer is okay with this.
Hey not the maintainer but could u fork and post it? Would be nice even if the PR doesn't get accepted
any updates on this? I guess the issue is what would the output data structure be? because when its index based the "key" is built into the fact its an array, but where/how do you store the key if its a random string?
Thanks so much for this package!
We're trying to parse FormData from fields that contain associative-array content:
Minimal reproduction:
Using string keys with array fields like this produces a "Duplicate key" error:
I'm not surprised to see an error here, since JS
[]
arrays are integer-indexed, but... Given that string-keyed "array" fields are pretty common in forms/apps these days, couldparseFormData()
be somehow clever enough to parse these entries into a map object instead of a numeric-keyed array?