serde_json5

Function from_str

Source
pub fn from_str<'a, T>(s: &'a str) -> Result<T>
where T: Deserialize<'a>,
Expand description

Deserialize an instance of type T from a string of JSON5 text. Can fail if the input is invalid JSON5, or doesn’t match the structure of the target type.