vt-elixir/ja_serializer

Considering migrating to Jason?

franckstifler opened this issue · 4 comments

Jason is said to be the fastest Elixir JSON encoder, I would like to know if migrating to it is something planned?

If you configure Plug/Phoenix to use Jason then you will be using Jason. This library doesn't actually convert into JSON, just to the properly formatted map to be passed to the JSON lib of your choice.

@franckstifler I'm personally using JaSerializer + Jason in production on Phoenix 1.4 with the following config:

config :phoenix, :json_library, Jason
config :phoenix, :format_encoders, "json-api": Jason

Edit: updated config

Thanks for your answers @beerlington and @alanpeabody . I whish to know if and how ja_serializer handles %Ecto.Association.NotLoaded{} structs?

@franckstifler can you be more specific?