Skip to main content

MAX_DEPTH

Constant MAX_DEPTH 

Source
pub const MAX_DEPTH: usize = 128;
Expand description

Deepest container nesting parse accepts (serde_json’s own default recursion limit). Checked by a linear scan before the recursive build, so hostile nesting can neither overflow the stack nor cost O(depth x size) (T-21-19).