pub fn check_json_nesting_depth(data: &[u8]) -> Result<(), String>Expand description
Reject JSON whose container nesting exceeds MAX_JSON_NESTING_DEPTH,
scanning the raw bytes with string-literal awareness so brackets inside
strings do not count. Mirrors the depth rule of Go’s CheckWireJSON.