Jason.Encode (jason v1.3.0) View Source

Utilities for encoding elixir values to JSON.

Link to this section Summary

Link to this section Types

Specs

opts()

Link to this section Functions

Specs

atom(atom(), opts()) :: iodata()

Specs

float(float()) :: iodata()

Specs

integer(integer()) :: iodata()

Specs

keyword(keyword(), opts()) :: iodata()

Specs

list(list(), opts()) :: iodata()

Specs

map(map(), opts()) :: iodata()

Specs

string(String.t(), opts()) :: iodata()

Specs

struct(struct(), opts()) :: iodata()

Specs

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.