pub fn classify_json_bytes(bytes: &[u8]) -> JsonClassExpand 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.