We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scenario:
photo_id[]=1 photo_caption[]= photo_id[]=2 photo_caption[]=Hello
qs.parse returns:
qs.parse
{ photo_id: ['1', '2'], photo_caption: ['Hello'] }
The correct version should be:
{ photo_id: ['1', '2'], photo_caption: ['', 'Hello'] }
Otherwise, it's impossible to maintain associations between the ordered fields.
The text was updated successfully, but these errors were encountered:
+1 from me though you could key them:
> require('qs').parse('photo[foo][id]=1&photo[foo][caption]=hey') { photo: { foo: { id: '1', caption: 'hey' } } }
Sorry, something went wrong.
This is still an issue, however you could use the built-in querystring module as a workaround.
No branches or pull requests
Scenario:
qs.parse
returns:The correct version should be:
Otherwise, it's impossible to maintain associations between the ordered fields.
The text was updated successfully, but these errors were encountered: