RangeError Threshold Confusion in Python json module deep parsing
The precise goal is to determine how Python's json module handles JSON input that triggers a RangeError due to excessive nesting, and whether this error can be reliably distinguished from a caller-enforced timeout. In single-threaded runtimes, json.loads() blocks the event loop indefinitely, so a setTimeout wrapper may expire while the parser remains active,