Expand description
Serializes Protocol Buffer (protobuf) messages into JSON format.
This crate provides functionality to serialize arbitrary protobuf messages
into a structured JSON representation. Special handling is applied to certain
protobuf field types that are not natively representable in JSON—most notably,
bytes fields.
Since raw byte sequences may contain non-UTF-8 data, they cannot be directly encoded as JSON strings. Instead, they are serialized as an object containing the base64-encoded value along with an encoding identifier. For example:
{
"my_bytes_field": {
"encoding": "base64",
"value": "dGhpcyBpcyB0aGUgb3JpZ2luYWwgdmFsdWU="
}
}Modules§
Structs§
- Serializer
- Serializes a protobuf to JSON format.