Function serde_json5::from_slice

source ·
pub fn from_slice<'a, T>(s: &'a [u8]) -> Result<T>
where T: Deserialize<'a>,
Expand description

Deserialize an instance of type T from a slice of JSON5 text. Can fail if the input is invalid JSON5, or doesn’t match the structure of the target type.