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

Perhaps follow the W3C JSON forms spec? #63

Open
dougwilson opened this issue Dec 18, 2014 · 12 comments
Open

Perhaps follow the W3C JSON forms spec? #63

dougwilson opened this issue Dec 18, 2014 · 12 comments
Labels

Comments

@dougwilson
Copy link
Contributor

It seems there is a technical report on adding in JSON to HTML forms: http://www.w3.org/TR/html-json-forms/

The syntax seems to pretty much be exactly what is being done here, but with slight differences (really, the differences just define the edge cases like how foo=bar&foo[0]=baz should parse: {"foo":{"":"bar","0":"baz"}}). It would also mean you have a good bullet against all the arguments that show up now and again for how this module operates :)

@jonathanong

This comment has been minimized.

@dougwilson

This comment has been minimized.

@jonathanong

This comment has been minimized.

@jonathanong

This comment has been minimized.

@dougwilson

This comment has been minimized.

@nlf
Copy link
Collaborator

nlf commented Jan 5, 2015

Yes! I'm so happy there's a standard that I can point to for this. Definitely going to do this, thank you for bringing this to my attention!

@nlf nlf added the enhancement label Jan 5, 2015
@nlf nlf self-assigned this Jan 5, 2015
@dougwilson
Copy link
Contributor Author

Cool :) The best part is it's nearly the same as this module already :) Feel free to back pedal on this issue as well; I haven't fully read the spec, and of course, you'll form better opinions on it once you do, haha.

@nlf
Copy link
Collaborator

nlf commented Jan 5, 2015

Yeah, I'll read through the spec first, but I'm super excited if this will work. All the ambiguity in this module is a huge annoyance.

@dougwilson
Copy link
Contributor Author

Plus all the bikeshedding regarding how it works :)

@nlf
Copy link
Collaborator

nlf commented May 22, 2015

While I'd like to do this, I think this module isn't the right place for it. There are so many wild edge cases that this module already caters to that dropping them all in favor of this standard would likely cause adoption issues that I'd like to avoid. I'm going to close this for now, but potentially this could become a new module in the future.

@nlf nlf closed this as completed May 22, 2015
@nlf nlf added question and removed enhancement labels May 22, 2015
@dougwilson
Copy link
Contributor Author

Thanks for your thoughts, @nlf :) We'll write our own parser, then :)

@ljharb
Copy link
Owner

ljharb commented Jul 28, 2016

I'm happy to consider doing this in a semver-major bump - reopening, per expressjs/express#3039 (comment)

@ljharb ljharb reopened this Jul 28, 2016
@ljharb ljharb unassigned nlf Jul 29, 2016
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

4 participants