Arc.Wire (cratis_arc v0.1.0)

Copy Markdown View Source

Converts Elixir values to the JSON-ready shape of the Arc wire format.

Struct and map keys become camelCase; Chronicle.Concept values become the primitive they wrap; dates and times become ISO 8601 strings; nil stays nil.

Summary

Functions

Encodes term to a value Jason can encode.

Functions

encode(value)

@spec encode(term()) :: term()

Encodes term to a value Jason can encode.