Skip to main content

parse_payload

Function parse_payload 

Source
pub fn parse_payload(bytes: &[u8]) -> TransportResult<PayloadValue>
Available on crate feature transport only.
Expand description

Parse payload bytes into a JSON value.

Auto-detects format (JSON or MsgPack) and converts to serde_json::Value. MsgPack is converted to JSON for uniform downstream processing.

ยงErrors

Returns error if parsing fails for the detected format.