Skip to main content

encode_for_reading

Function encode_for_reading 

Source
pub fn encode_for_reading(
    catalog: &Catalog,
    ty: &Type,
    value: &Value,
) -> Result<Json, EncodeError>
Expand description

Returns value, of type ty, as encode writes it, except that bytes holding valid UTF-8 are written as that text: the form a person reads, which no decoder takes back.

ยงErrors

As encode.