Joken.Codec behaviour
Behaviour used by Joken to encode and decode data.
Callbacks
Specs:
- decode(String.t) :: Joken.payload
decode can take a string and return a map or a keyword list.
Specs:
- encode(Joken.payload) :: String.t
encode can take either a map or a keyword list or both and return a string.