diff --git a/lib/elixir/lib/json.ex b/lib/elixir/lib/json.ex index ec602bf1b7f..b1a38059c17 100644 --- a/lib/elixir/lib/json.ex +++ b/lib/elixir/lib/json.ex @@ -5,8 +5,8 @@ defprotocol JSON.Encoder do If you have a struct, you can derive the implementation of this protocol by specifying which fields should be encoded to JSON: - @derive {JSON.Encoder, only: [....]} - defstruct ... + @derive {JSON.Encoder, only: [....]} + defstruct ... It is also possible to encode all fields or skip some fields via the `:except` option: