pub fn encode_bytes_as_json(bytes: &[u8], type_marker: &str) -> Value
Encode bytes as a JSON object with type marker.
This creates a portable representation that can be decoded on any platform.