fn toml_to_json<T: Serialize>(map: &T) -> Result<ParamMap> {
    let s = serde_json::to_string(map)?;
    let value: ParamMap = serde_json::from_str(&s)?;
    Ok(value)
}
// convert from TOML map to JSON map
convert from TOML map to JSON map
convert from TOML map to JSON map
fn toml_to_json<T: Serialize>(map: &T) -> Result<ParamMap> {
    let s = serde_json::to_string(map)?;
    let value: ParamMap = serde_json::from_str(&s)?;
    Ok(value)
}
fn toml_to_json < T : Serialize > ( map : & T ) -> Result < ParamMap > { let s = serde_json :: to_string ( map ) ? ; let value : ParamMap = serde_json :: from_str ( & s ) ? ; Ok ( value ) }
convert from TOML map to JSON map
convert from TOML map to JSON map
map
&T