pedantic/json
Values
pub fn decode_json(
codec: codec.Codec(t),
json_string: String,
) -> Result(t, report.Report)
Decodes a JSON string using the provided Codec. Accumulates errors if the JSON is valid but does not match the schema.
pub fn encode_json(codec: codec.Codec(t), val: t) -> String
Encodes a value into a JSON string using the provided Codec.