HF RL Explorer

StackOverflowError during deserialization of deeply nested JSON

StackOverflowError during deserialization of deeply nested JSON: a task in LegoFlow-SWE (Harbor dataset). Gson throws a StackOverflowError when deserializing deeply nested JSON structures, such as arrays nested more than 8000 levels deep (e.g. ... ). Most applications only catch Exception…

The task

Gson throws a `StackOverflowError` when deserializing deeply nested JSON structures, such as arrays nested more than 8000 levels deep (e.g. `[[[[...]]]]`). Most applications only catch `Exception` subclasses, not `Error` subclasses, so this error propagates unexpectedly and crashes the application.

Part of Lego-X/LegoFlow-SWE.