pub fn send_message(stream: &mut UnixStream, msg: &Value) -> Result<()>
Send a JSON message to a stream