Module json_validator

Module json_validator 

Source
Expand description

JSON validation utilities to prevent DoS attacks

This module provides functions to validate JSON structure before deserialization, preventing Denial of Service attacks through deeply nested JSON structures.

Constants§

MAX_JSON_DEPTH
Maximum allowed JSON nesting depth

Functions§

validate_json_depth
Validate JSON nesting depth to prevent DoS attacks