glitr/convert/json

Functions

pub fn json_decode(
  converter: Converter(a),
) -> fn(Dynamic) -> Result(a, List(DecodeError))

Decode a Json value using the provided converter.

pub fn json_encode(value: a, converter: Converter(a)) -> Json

Encode a value into the corresponding Json using the converter.
If the converter isn’t valid, a NullValue is returned.

Search Document