jason v1.1.2 Jason.Encode View Source

Utilities for encoding elixir values to JSON.

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function atom(atom, arg) View Source
atom(atom(), opts()) :: iodata()
Link to this function integer(integer) View Source
integer(integer()) :: iodata()
Link to this function list(list, arg) View Source
list(list(), opts()) :: iodata()
Link to this function map(value, arg) View Source
map(map(), opts()) :: iodata()
Link to this function string(string, arg) View Source
string(String.t(), opts()) :: iodata()
Link to this function struct(value, arg) View Source
struct(struct(), opts()) :: iodata()
Link to this function value(value, arg) View Source
value(term(), opts()) :: iodata()

Equivalent to calling the Jason.Encoder.encode/2 protocol function.

Slightly more efficient for built-in types because of the internal dispatching.