pub fn from_str<T: DeserializeOwned>(json: &str) -> Result<T, Error>
Parse JSON from a string slice.
Returns an error if parsing fails.