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

serialize to result start with array [] #61

Closed
sckoh opened this issue Mar 19, 2015 · 1 comment
Closed

serialize to result start with array [] #61

sckoh opened this issue Mar 19, 2015 · 1 comment
Labels

Comments

@sckoh
Copy link

sckoh commented Mar 19, 2015

<input name="foo[]" value="10">
<input name="foo[]" value="20">

serialize into

{foo: [10, 20]}

How can I serialize a form into below without the key 'foo'

[10, 20]
@macek macek added the invalid label Mar 20, 2015
@macek
Copy link
Owner

macek commented Mar 20, 2015

Serializing to an unnamed array is not possible using this plugin. When submitting form data, values should be associated to keys in some way.

As I work toward the W3C HTML JSON form submission spec it's not likely to be added in the future either.

@macek macek closed this as completed Mar 20, 2015
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

2 participants