fn prepare_lsp_json(msg: &Value) -> Result<String, serde_json::error::Error> {
    let request = serde_json::to_string(&msg)?;
    Ok(format!(
        "Content-Length: {}\r\n\r\n{}",
        request.len(),
        request
    ))
}
/// Prepare Language Server Protocol style JSON String from
/// a serde_json object `Value`
Prepare Language Server Protocol style JSON String from
a serde_json object `Value`
Prepare Language Server Protocol style JSON String from a serde_json object ` Value `
fn prepare_lsp_json(msg: &Value) -> Result<String, serde_json::error::Error> {
    let request = serde_json::to_string(&msg)?;
    Ok(format!(
        "Content-Length: {}\r\n\r\n{}",
        request.len(),
        request
    ))
}
fn prepare_lsp_json ( msg : & Value ) -> Result < String , serde_json :: error :: Error > { let request = serde_json :: to_string ( & msg ) ? ; Ok ( format ! ( " \r \n \r \n " request len ( ) request ) ) }
Prepare Language Server Protocol style JSON String from
a serde_json object `Value`
Prepare Language Server Protocol style JSON String from a serde_json object ` Value `
msg
&Value