pub fn from_slice<'a, T>(
value: &'a [u8],
deserialization_limit: usize,
) -> VmResult<T>where
T: Deserialize<'a>,Expand description
Deserializes JSON data into a document of type T.
The deserialization limit ensure it is not possible to slow down the execution by providing overly large JSON documents.