pub fn from_slice<'de, T>(input: &'de [u8]) -> Result<T, DecodeJsonError>where
T: DeserializeOwned,Expand description
Try to parse data from the input. Validates that there are no trailing non-whitespace bytes.
pub fn from_slice<'de, T>(input: &'de [u8]) -> Result<T, DecodeJsonError>where
T: DeserializeOwned,Try to parse data from the input. Validates that there are no trailing non-whitespace bytes.