ex_crypto icon indicating copy to clipboard operation
ex_crypto copied to clipboard

Replace Poison with Jason

Open ybod opened this issue 5 years ago • 5 comments

  1. Replace Poison with Jason for JSON encoding/decoding
  2. Update hex_doc version
  3. Format code with mix format

ybod avatar Apr 04 '19 11:04 ybod

What is the motivation for using Jason rather than Poison?

ntrepid8 avatar Apr 04 '19 20:04 ntrepid8

Jason is faster and "smaller", many projects already switched to Jason.

ybod avatar Apr 05 '19 14:04 ybod

I came here to request these changes as well. As Phoenix comes with Jason already as a dependency, many projects are following suite to keep from bringing in dependencies that do the same thing.

If you don't want to use a json library directly, then maybe we could tie it to a behaviour or something like https://github.com/scrogson/oauth2/#configure-a-serializer

Another example of people asking for this https://github.com/parroty/extwitter/issues/121

cgorshing avatar Feb 04 '20 02:02 cgorshing

I'm not opposed to using Jason :)

Mostly I need to figure out why Travis isn't running the CI jobs anymore :(

ntrepid8 avatar Feb 04 '20 12:02 ntrepid8

Can somebody merge this? Oh, I see Poison has a new maintainer now 🤔

barttenbrinke avatar Sep 08 '21 09:09 barttenbrinke