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

JSON request/response mixin #1984

Closed
wants to merge 16 commits into from
Closed

Conversation

untitaker
Copy link
Contributor

@untitaker untitaker commented Aug 19, 2016

Continuing #1416

All inline discussions have been resolved.

# been encoded correctly as well.
charset = self.mimetype_params.get('charset')
try:
data = self._get_data_for_json(cache)

This comment was marked as off-topic.

This comment was marked as off-topic.

@JordanP
Copy link

JordanP commented Jan 17, 2017

Any progress on this ? Could you rebase ?

I've been looking for better JSON support (a-la python-requests) and there's already several bug reports and PR in flask and werkzeug about this. This looks like a popular demand :)

@jwg4
Copy link

jwg4 commented Jan 19, 2017

This change would make a big difference to us. Sorry to see that it is nearly two years old, can I do something to help?

@ramnes
Copy link

ramnes commented Apr 5, 2017

This request merged would be a huge relief for me and my team also.

@mitsuhiko, @untitaker, how can we make this happen?

@kislyuk
Copy link
Contributor

kislyuk commented Apr 6, 2017

+1 for this feature. Any way to help this get in?

@davidism davidism added the json label Apr 19, 2017
@kennethreitz
Copy link
Contributor

needs a rebase!

@kennethreitz
Copy link
Contributor

Maybe it would be better to use Requests as the test client :)

The :meth:`get_json` method should be used instead.
"""
from warnings import warn
warn(DeprecationWarning(

This comment was marked as off-topic.

This comment was marked as off-topic.

@kennethreitz
Copy link
Contributor

closing, old pr, requests is actually a better idea for the client (though i'm sure that's not an obvious choice)

@untitaker
Copy link
Contributor Author

untitaker commented May 25, 2017 via email

@kennethreitz kennethreitz reopened this May 25, 2017
@kennethreitz
Copy link
Contributor

i definitely don't think requests should go in, i'm mostly joking about that :)

@kennethreitz
Copy link
Contributor

may have been premature to close this — i reviewed every line of code, and it seemed solid until i got to the deprecation of .json. then, I saw that there may be some issues with werkzeug and saw the merge conflicts so decided to close.

@untitaker
Copy link
Contributor Author

untitaker commented May 25, 2017 via email

@kennethreitz
Copy link
Contributor

Well, you'd write a connection adapter that would skip it speaking HTTP and have it talk WSGI instead. Should be <30LOC. It's alright though, people are used to having unique test clients, and people are def used to the one built in here.

@davidism
Copy link
Member

davidism commented Jun 4, 2017

Continued in #2358.

@davidism davidism closed this Jun 4, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants