Function validate_bytes

Source
pub fn validate_bytes(bytes: &[u8]) -> Result<JsonType, Error>
Expand description

A convenient method to check and consume JSON from a bytes slice.