pub async fn send_json<T: Serialize>(
    writer: &mut impl AsyncWrite + Unpin,
    msg: T
) -> Result<()>
Expand description

Send a null-terminated JSON instruction on a stream.