Joken.Codec behaviour

Behaviour used by Joken to encode and decode data.

Callbacks

decode/1

Specs:

decode can take a string and return a map or a keyword list.

encode/1

Specs:

encode can take either a map or a keyword list or both and return a string.