Wardrik.JSON (wardrik v0.1.0-rc.1)

Copy Markdown

Turns view results into JSON-ready operation results.

Summary

Functions

Returns value with every key and atom as a string. Leaves true, false and nil alone.

Functions

json(map)

@spec json(term()) :: term()

Returns value with every key and atom as a string. Leaves true, false and nil alone.

Wardrik.JSON.json(%{status: :idle})
#=> %{"status" => "idle"}