Function from_str
fn from_str<'de, T: Deserialize<'de>>(input: &'de str) -> Result<T, Error>
Parse a JSON5 string and map it to a type implementing Deserialize.
Example
use Deserialize;
let config: Config = from_str?;
assert_eq!;
# Ok::
Errors
Fails if the JSON5 is malformed or we can't map it to a T.