Function from_slice

Source
pub fn from_slice<'de, T>(input: &'de [u8]) -> Result<T, DecodeJsonError>
Expand description

Try to parse data from the input. Validates that there are no trailing non-whitespace bytes.