View source: R/telemetry_ingest.R
| check_json_depth | R Documentation |
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)
obj |
JSON object (list or other R object from |
max_depth |
Maximum allowed nesting depth (default: 50) |
current_depth |
Current recursion depth (internal use) |
Logical TRUE if depth is acceptable, aborts with error if exceeded
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.