Function from_slice

Source
pub fn from_slice<T: Facet>(json: &[u8]) -> Result<T, JsonError<'_>>
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.