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

Let the client configure the JSON library #111

Open
GPrimola opened this issue Sep 2, 2019 · 0 comments
Open

Let the client configure the JSON library #111

GPrimola opened this issue Sep 2, 2019 · 0 comments

Comments

@GPrimola
Copy link

GPrimola commented Sep 2, 2019

After Phoenix opinionated on Jason as its default JSON library (configurable), there's a tendency to generally use Jason.
Regarding white-bread, I think the best approach would be to be non-opinionated regarding that and let the client configure that, since Jason and Poison have the same interface (behaviour) it wouldn't be a problem.
For the client to use I suggest something like:

config :white_bread, :outputters
  json_library: Jason

Thank you!

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

1 participant