Skip to main content

classify_json_bytes

Function classify_json_bytes 

Source
pub fn classify_json_bytes(bytes: &[u8]) -> JsonClass
Expand description

Classify JSON bytes without performing lossy text replacement.

Invalid UTF-8 has no trustworthy JSON markers and returns the same Detection::Unknown classification as malformed JSON. A leading UTF-8 byte order mark is accepted through classify_json_text.