Function from_str

Source
pub fn from_str<T: Facet>(
    json: &str,
) -> Result<T, JsonParseErrorWithContext<'_>>
Expand description

Deserializes a JSON string into a value of type T that implements Facet.

This function takes a JSON string representation and converts it into a Rust value of the specified type T. The type must implement the Facet trait to provide the necessary type information for deserialization.