Pudu programming language
Menu
API reference

Std.Json.DecodeError

1 declaration

type

DecodeError

Why 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))
}

Back to Std.JsonSearch related declarations