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

Proposal: Parse JSON params in mux #39

Open
shahendaeldeeb opened this issue Dec 11, 2017 · 1 comment
Open

Proposal: Parse JSON params in mux #39

shahendaeldeeb opened this issue Dec 11, 2017 · 1 comment

Comments

@shahendaeldeeb
Copy link

In github/fragmenta/mux/params.go file line (52), it supports either "application/x-www-form-urlencoded" or "multipart/form-data" only, is there any reason behind not including JSON datatype?
Are you planning to include it in any coming release?
Thanks in advance .

@kennygrant
Copy link
Contributor

kennygrant commented Apr 8, 2018

So you'd like to parse params coming in as json in the body of a post request?

Good idea. I'd be interested in adding this. Would you like to have a go at it? This probably belongs more on the mux package, but happy to discuss here.

@kennygrant kennygrant changed the title I can't pass JSON content-type as parameter in ajax call Proposal: Parse JSON params in mux Apr 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants