pub fn from_str<'a, T>(s: impl Into<Cow<'a, str>>) -> Result<T>where
T: DeserializeOwned,
Expand description
Deserialize an instance of type T
from a string of JSON text.
If the simd_json
feature is enabled, this function turns its argument into Cow::Owned
before deserializing from it. In other words, passing in a &str
will result in a clone.