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

Add option to define custom json_encoder #10

Merged
merged 2 commits into from
May 25, 2017

Conversation

julienmeyer
Copy link
Contributor

New option to specify a custom json encoder.
Can be useful when the claim value or principal could not be encoded by the default json encoder (example : uuid)

@wichert wichert merged commit 5de1fda into wichert:master May 25, 2017
@wichert
Copy link
Owner

wichert commented May 25, 2017

Thanks, this looks like a very useful change. One possible improvement might be to use the pyramid JSON encoder (pyramid.renders.json_renderer_factory) as default here.

@julienmeyer
Copy link
Contributor Author

Good idea, I will update my pull request with pyramid json renderer as default.

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

Successfully merging this pull request may close these issues.

2 participants