Skip to main content

classify

Function classify 

Source
pub fn classify(bytes: &[u8]) -> Result<(JsonClass, Node), String>
Expand description

Classify a .json member’s bytes and return its parsed tree.

Refuses (as Err): more than JSON_MAX_BYTES bytes, invalid UTF-8, a leading byte-order mark, and anything parse refuses (syntax, trailing content, nesting beyond MAX_DEPTH, a repeated key).