Resty v0.12.0 Resty.Serializer.Json View Source

This is the default Resty.Serializer implementation.

Under the hood it uses Jason to decode/encode json.

Params

This serializer do not use any parameter.

Usage

As this is the default you should not have to manually set it except if you have changed the default serializer in your config.exs file.

defmodule MyResource do
  use Resty.Resource.Base

  set_serializer Resty.Serializer.Json
end