pub(crate) fn json_str_to_msgpack_bytes(payload: &str) -> Result<Vec<u8>> {
    let json = serde_json::from_str::<serde_json::Value>(payload)?;
    let payload = wasmbus_rpc::serialize(&json)?;
    Ok(payload)
}
/// Transform a json string (e.g. "{"hello": "world"}") into msgpack bytes
Transform a json string  into msgpack bytes
Transform a json string into msgpack bytes
pub(crate) fn json_str_to_msgpack_bytes(payload: &str) -> Result<Vec<u8>> {
    let json = serde_json::from_str::<serde_json::Value>(payload)?;
    let payload = wasmbus_rpc::serialize(&json)?;
    Ok(payload)
}
pub ( crate ) fn json_str_to_msgpack_bytes ( payload : & str ) -> Result < Vec < u8 > > { let json = serde_json :: from_str :: < serde_json :: Value > ( payload ) ? ; let payload = wasmbus_rpc :: serialize ( & json ) ? ; Ok ( payload ) }
Transform a json string (e.g.
Transform a json string ( e . g .
payload
&str