odin_rpc_bytes_to_json
Overview
Helper function to deserialize MessagePack encoded data and convert it into a JSON string.
Parameters
| Name | Type | Description |
|---|---|---|
bytes | const uint8_t * | MessagePack encoded data. |
bytes_length | uint32_t | Length of the data. |
out_json | char * | Buffer to write the JSON string to. |
out_json_length | uint32_t * | Input: buffer size, Output: actual string length. |
Return Value
| Type | Description |
|---|---|
OdinError | ODIN_ERROR_SUCCESS on success. |