We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
JSON.Encoder
1 parent 62f49cd commit ea02b0cCopy full SHA for ea02b0c
lib/elixir/lib/json.ex
@@ -5,8 +5,8 @@ defprotocol JSON.Encoder do
5
If you have a struct, you can derive the implementation of this protocol
6
by specifying which fields should be encoded to JSON:
7
8
- @derive {JSON.Encoder, only: [....]}
9
- defstruct ...
+ @derive {JSON.Encoder, only: [....]}
+ defstruct ...
10
11
It is also possible to encode all fields or skip some fields via the
12
`:except` option:
0 commit comments