Function serde_json_core::from_slice
source · pub fn from_slice<'a, T>(v: &'a [u8]) -> Result<(T, usize)>where
T: Deserialize<'a>,
Expand description
Deserializes an instance of type T
from bytes of JSON text
Returns the value and the number of bytes consumed in the process