pub fn value_within_depth(value: &Value) -> boolExpand description
Whether value nests no deeper than MAX_VALUE_DEPTH levels. Walks the
value with an explicit stack and stops at the first level past the limit, so
a deep value is refused without using the call stack. The same rule as the
device’s isWithinReplicaValueDepth and the TypeScript helper’s
isWithinValueDepth; tests/fixtures/value-depth.json holds the shared cases.