Skip to main content

json_depth

Function json_depth 

Source
pub fn json_depth(v: &Value) -> usize
Expand description

Container-nesting depth of a JSON value: scalars are 0, an array/object is 1 + its deepest child. (Recursion here is bounded by serde_json’s own 128-level parse limit.)