Skip to main content

safe_parse_bytes

Function safe_parse_bytes 

Source
pub fn safe_parse_bytes(bytes: &[u8]) -> SafeOutcome
Expand description

Parse JSON bytes and fold every outcome into a SafeOutcome.

The byte counterpart to safe_parse. A leading UTF-8 byte order mark is stripped before parsing.