pub fn convert_json_to<T: for<'a> Deserialize<'a>>(
plain: &str,
) -> Result<T, String>Expand description
Converts plain JSON to a struct/enum that impl’s serde’s Deserialize. Uses serde_json::from_str under the hood
pub fn convert_json_to<T: for<'a> Deserialize<'a>>(
plain: &str,
) -> Result<T, String>Converts plain JSON to a struct/enum that impl’s serde’s Deserialize. Uses serde_json::from_str under the hood