Skip to content

Let the client configure the JSON library #111

@GPrimola

Description

@GPrimola

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions