pub fn encode_for_reading( catalog: &Catalog, ty: &Type, value: &Value, ) -> Result<Json, EncodeError>
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.
value
ty
encode
As encode.