pub fn decode_text(
catalog: &Catalog,
ty: &Type,
text: &str,
mode: Mode,
limits: &Limits,
) -> Result<Value, DecodeError>Expand description
Decodes text as a value of ty.
ยงErrors
A DecodeError when text is not JSON within limits, or the JSON
is not a value of ty in mode.