Expand description
Serde helper for encoding Vec<u8> as a base64 string in JSON.
Without this, serde_json serializes Vec<u8> as a JSON array of numbers
(e.g., [104,101,108,108,111]), which inflates binary data by ~4x.
Base64 encoding reduces this to ~1.33x.
Functionsยง
- deserialize
- Deserialize a base64 string into
Vec<u8>. - serialize
- Serialize
Vec<u8>as a base64 string.