Jason.Structs.Encoder (jason_structs v0.2.0) View Source

Implementation that is applied to all the Jason.Structs structs.

Basically it encodes the structs, defined with the DSL provided by Jason.Structs to JSON. By default all keys are transofrmed from snake-styled expressions to cammel-styled expressions.

Link to this section Summary

Functions

Implements the Jason.Encoder.encode function for Jason.Structs structs.

Link to this section Types

Specs

opts()

Link to this section Functions

Specs

encode(data :: map(), opts()) :: iodata()

Implements the Jason.Encoder.encode function for Jason.Structs structs.