Skip to main content

try_decode_bytes_object

Function try_decode_bytes_object 

Source
pub fn try_decode_bytes_object(obj: &Map<String, Value>) -> Option<Vec<u8>>
Expand description

Check if a JSON object represents specially encoded bytes.

Returns the decoded bytes if the object has the correct structure, or None if it’s a regular object.