Skip to main content

encode_bytes_as_json

Function encode_bytes_as_json 

Source
pub fn encode_bytes_as_json(bytes: &[u8], type_marker: &str) -> Value
Expand description

Encode bytes as a JSON object with type marker.

This creates a portable representation that can be decoded on any platform.