Skip to main content

depth_of

Function depth_of 

Source
pub fn depth_of(v: &Value, current: usize) -> usize
Expand description

Compute the maximum nesting depth of a JSON value. Exposed so callers outside this crate (chat-completions ingress and any admin body parser) can apply the same trust-boundary depth cap without duplicating logic.