Json
JSON
Opaque JSON values for database columns and Encode/Decode.
A Value is stored as Postgres jsonb (SQLite text). Build values with Json.Encode and inspect them with Json.Decode.
Types
Value
type Value = ValueA JSON value. Construct with Json.Encode; read with Json.Decode.
Examples
Json.Encode.encode (Json.Encode.int 42) == "42"
Json.Decode.decodeString Json.Decode.int "42" == Ok 42