pub async fn send_json<T: Serialize>( writer: &mut impl AsyncWrite + Unpin, msg: T) -> Result<()>
Send a null-terminated JSON instruction on a stream.