You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Tesla.Middleware.JSON defaults to Jason as its JSON decoder and encoder, but since Elixir 1.18 now there is a built-in alternative that could be used as the default engine when running in Elixit 1.18, eliminating a dependency on another library.
Right now, to use the new module, I believe we could use the encode and decode options, but it cannot be directly passed in the engine option since JSON does not have an encode/1 function and also do not support engine_opts.
Currently
Tesla.Middleware.JSON
defaults toJason
as its JSON decoder and encoder, but since Elixir 1.18 now there is a built-in alternative that could be used as the default engine when running in Elixit 1.18, eliminating a dependency on another library.Right now, to use the new module, I believe we could use the
encode
anddecode
options, but it cannot be directly passed in theengine
option sinceJSON
does not have anencode/1
function and also do not supportengine_opts
.The text was updated successfully, but these errors were encountered: