pub fn depth_of(v: &Value, current: usize) -> usizeExpand 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.