Function parse_counter_value
Source pub fn parse_counter_value(data: &[u8]) -> Result<BigInt>
Expand description
Parses a counter value from message data.
Counter values are stored as JSON in the format: {"val": "123"}
§Arguments
data - The raw message data containing the JSON payload
§Returns
A BigInt representing the counter value.