Function from_slice
Source pub fn from_slice<'input, 'facet, T>(
json: &'input [u8],
) -> Result<T, JsonError<'input>>where
T:
Facet<'facet>,
'input: 'facet,
Expand description
Deserialize JSON from a slice
§Arguments
json - A slice of bytes representing the JSON input.
§Returns
A result containing the deserialized value of type T or a JsonParseErrorWithContext.