Skip to content
New issue

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

parse: "a[]=&a[]=b" returns { a: [ 'b' ] } #73

Open
spudly opened this issue Aug 28, 2013 · 0 comments
Open

parse: "a[]=&a[]=b" returns { a: [ 'b' ] } #73

spudly opened this issue Aug 28, 2013 · 0 comments
Labels

Comments

@spudly
Copy link

spudly commented Aug 28, 2013

Current Behavior:

qs.parse('a[]=&a[]=b');
// => { a: [ 'b' ] }

Expected Behavior:

qs.parse('a[]=&a[]=b');
// => { a: [ '', 'b' ] }

Without brackets, it does what I want, but...

qs.parse('a=&a=b');
// => { a: [ '', 'b' ] }

...but that's not really correct either (#38) so I'm not sure I want to just get rid of the brackets (esp. because my client-side code also has to work with a php backend).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant