pub fn from_slice<'de, T: Deserialize<'de>>(
bytes: &'de [u8],
) -> Result<T, Error>Expand description
Deserializes JSON from the given bytes.
The input must be UTF-8. Rather than validating the input upfront, the
strings are validated while parsing (see Deserializer::from_slice).
This uses the default DeserializerConfig.