You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: _validate_depth() recursively traverses the entire JSON structure. Even with a depth cap, large payloads can still burn significant CPU/time and recursion overhead.
Fix: Replace recursion with an iterative traversal (explicit stack/queue), short-circuit immediately when depth exceeds MAX_NESTED_DEPTH, and add a performance-oriented test.
Activity
Aditya8369 commentedon May 11, 2026
@devanshi14malhotra assign me please