Validates that JSON data does not exceed a maximum nesting depth to prevent stack overflow and resource exhaustion attacks.
check_json_depth(obj, max_depth = 50, current_depth = 1)Logical TRUE if depth is acceptable, aborts with error if exceeded
JSON object (list or other R object from jsonlite::fromJSON)
Maximum allowed nesting depth (default: 50)
Current recursion depth (internal use)