Std.Json.DecodeError
1 declaration
type
DecodeErrorWhy JSON did not decode into a type: where, what was expected there, and what was found instead. Kept apart from JsonError, which is about text that is not JSON at all; this is about JSON that is not the type.
Examples
match Json.Decode.decode(&value) {
case Ok(order) => use(order)
case Err(problem) => report(Json.explainDecode(&problem))
}