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
Using the built-in JSON module would spare us the need to pull additional libraries like Jason. Also, the JSON module seems to implement a wider spectrum of the JSON specification. For example, Jason doesn't like atoms like :"TLS 1.3 / AES_128_GCM" and automatically generated modules like
Description
Elixir 1.18 added native built-in support for JSON encoding and decoding.
Tesla's JSON middleware supports the build-in module too.
Using the built-in JSON module would spare us the need to pull additional libraries like Jason. Also, the JSON module seems to implement a wider spectrum of the JSON specification. For example,
Jason
doesn't like atoms like :"TLS 1.3 / AES_128_GCM" and automatically generated modules likewouldn't compile and would result in the following error
The built-in JSON module handles these scenarios well.
In order to be able to use the built-in JSON module, we would need to bump the minimum required version of Elixir from
1.10
to1.18
.The text was updated successfully, but these errors were encountered: